daad6d662f
The SyncService::stop method guarantees that the sync service will be stopped after it has completed so there's no need to wait for state changes. The state change might not even come, if you pressed `S` to stop the sync service manually.