Split the sync listener thread inot two and fixed file sync state process issues