fixed deadlock bug.
Merge branch 'master' of https://github.com/elgs/filesync