mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
p2p/discv5: add delay to refresh cycle when no seed nodes are found
This commit is contained in:
parent
574378edb5
commit
8c0e4c92c6
1 changed files with 1 additions and 1 deletions
|
|
@ -678,7 +678,7 @@ func (net *Network) refresh(done chan<- struct{}) {
|
|||
}
|
||||
if len(seeds) == 0 {
|
||||
log.Trace("no seed nodes found")
|
||||
close(done)
|
||||
time.AfterFunc(time.Second*10, func() { close(done) })
|
||||
return
|
||||
}
|
||||
for _, n := range seeds {
|
||||
|
|
|
|||
Loading…
Reference in a new issue