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

This commit is contained in:
ucwong authored and GitHub committed 2020-04-02 12:32:45 +02:00
1 parent 47f7c736cb
commit 66ed58bfcc
1 file changed
+2
+2
View File
@@ -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