Block session when syncing
Merge pull request #587 from anandpdoshi/hotfix

Block session when syncing