stop the ticker when done with it
This commit is contained in:
parent
9ddf7bbd15
commit
188d1649d3
@ -160,6 +160,7 @@ func (sm *syncManager) scheduler() {
|
||||
sm.handleWorkerStatus(status)
|
||||
case <-tickerC:
|
||||
if sm.initialSync {
|
||||
ticker.Stop()
|
||||
tickerC = nil
|
||||
sm.handleInitialSync()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user