Browse Source

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

Fixes #5841.
pull/5867/head
Erik Grinaker 4 years ago
committed by GitHub
parent
commit
0555772d3a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      blockchain/v0/reactor.go

+ 3
- 0
blockchain/v0/reactor.go 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 {


Loading…
Cancel
Save