stop the ticker when done with it

This commit is contained in:
vyzo 2020-10-28 11:41:40 +02:00
parent 9ddf7bbd15
commit 188d1649d3

View File

@ -160,6 +160,7 @@ func (sm *syncManager) scheduler() {
sm.handleWorkerStatus(status)
case <-tickerC:
if sm.initialSync {
ticker.Stop()
tickerC = nil
sm.handleInitialSync()
}