p2p/discover: continue

This commit is contained in:
Felix Lange 2025-09-12 12:50:07 +02:00
parent 68c18ede06
commit 0643427965

View file

@ -190,6 +190,8 @@ func (it *lookupIterator) Next() bool {
// 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.
it.lookupFailed(it.lookup.tab)
it.lookup = nil
continue
}
// Yield the initial nodes from the iterator before advancing the lookup.
it.buffer = it.lookup.replyBuffer