Unverified Commit 66ed58bf authored by ucwong's avatar ucwong Committed by GitHub

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

parent 47f7c736
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment