aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
Diffstat (limited to 'p2p')
-rw-r--r--p2p/discv5/net.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go
index 4c39c0553..b93c93d64 100644
--- a/p2p/discv5/net.go
+++ b/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 {