diff --git a/dht_bootstrap.go b/dht_bootstrap.go index 1b0e91ae7fa..d87f1338c95 100644 --- a/dht_bootstrap.go +++ b/dht_bootstrap.go @@ -78,6 +78,7 @@ func (dht *IpfsDHT) BootstrapWithConfig(cfg BootstrapConfig) (goprocess.Process, } proc := dht.Process().Go(func(p goprocess.Process) { + <-p.Go(dht.bootstrapWorker(cfg)).Closed() for { select { case <-time.After(cfg.Period):