Skip to content

Commit

Permalink
eth/fetcher: add missing timer.Stop calls (ethereum#20861)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong authored Apr 2, 2020
1 parent 47f7c73 commit 66ed58b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66ed58b

Please sign in to comment.