mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/devp2p | crawl timer stop defer added
This commit is contained in:
parent
9dc4e9a8dd
commit
a7ccb9b2e3
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue