eth/fetcher: add missing timer.Stop calls (#20861)

release/1.9
ucwong 5 years ago committed by GitHub
parent 47f7c736cb
commit 66ed58bfcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      eth/fetcher/block_fetcher.go

@ -302,6 +302,8 @@ func (f *BlockFetcher) loop() {
// Iterate the block fetching until a quit is requested
fetchTimer := time.NewTimer(0)
completeTimer := time.NewTimer(0)
defer fetchTimer.Stop()
defer completeTimer.Stop()
for {
// Clean up any expired block fetches

Loading…
Cancel
Save