add restart, fixed #346
Merge pull request #347 from cnpm/issue346-restart-syncer

add restart, fixed #346