From a7ccb9b2e37c4f847b42a6061655f8e3660d338c Mon Sep 17 00:00:00 2001 From: ucwong Date: Wed, 1 Apr 2020 12:07:38 +0800 Subject: [PATCH] cmd/devp2p | crawl timer stop defer added --- cmd/devp2p/crawl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/devp2p/crawl.go b/cmd/devp2p/crawl.go index 92aaad72a3..7fefbd7a1c 100644 --- a/cmd/devp2p/crawl.go +++ b/cmd/devp2p/crawl.go @@ -63,6 +63,7 @@ func (c *crawler) run(timeout time.Duration) nodeSet { doneCh = make(chan enode.Iterator, len(c.iters)) liveIters = len(c.iters) ) + defer timeoutTimer.Stop() for _, it := range c.iters { go c.runIterator(doneCh, it) }