p2p/discv5: add delay to refresh cycle when no seed nodes are found (#16994)

pull/17320/head
Felföldi Zsolt 6 years ago committed by Felix Lange
parent b2ddb1fcbf
commit b52bb31b76
  1. 2
      p2p/discv5/net.go

@ -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…
Cancel
Save