mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
p2p/discover: continue
This commit is contained in:
parent
68c18ede06
commit
0643427965
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ func (it *lookupIterator) Next() bool {
|
||||||
// If the lookup is empty right after creation, it means the local table
|
// If the lookup is empty right after creation, it means the local table
|
||||||
// is in a degraded state, and we need to wait for it to fill again.
|
// is in a degraded state, and we need to wait for it to fill again.
|
||||||
it.lookupFailed(it.lookup.tab)
|
it.lookupFailed(it.lookup.tab)
|
||||||
|
it.lookup = nil
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
// Yield the initial nodes from the iterator before advancing the lookup.
|
// Yield the initial nodes from the iterator before advancing the lookup.
|
||||||
it.buffer = it.lookup.replyBuffer
|
it.buffer = it.lookup.replyBuffer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue