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)
|
sm.handleWorkerStatus(status)
|
||||||
case <-tickerC:
|
case <-tickerC:
|
||||||
if sm.initialSync {
|
if sm.initialSync {
|
||||||
|
ticker.Stop()
|
||||||
tickerC = nil
|
tickerC = nil
|
||||||
sm.handleInitialSync()
|
sm.handleInitialSync()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user