blockchain/v0: stop tickers on poolRoutine exit (#5860)

Fixes #5841.
This commit is contained in:
Erik Grinaker
2021-01-05 15:45:24 +01:00
committed by GitHub
parent 1e1d087494
commit 0555772d3a

View File

@@ -277,6 +277,9 @@ func (bcR *BlockchainReactor) poolRoutine(stateSynced bool) {
didProcessCh = make(chan struct{}, 1)
)
defer trySyncTicker.Stop()
defer statusUpdateTicker.Stop()
defer switchToConsensusTicker.Stop()
go func() {
for {