diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go index b6cab05deb2f8fff765de885e56471f6b10270e4..7690a538624e54a07fad5226030e70546b312504 100644 --- a/eth/fetcher/block_fetcher.go +++ b/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