From 6c3c500c3f3820ba86034e7e5be0d5b320a01176 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 20 Aug 2024 18:45:21 +0200 Subject: [PATCH] fix(dht): do not make announce stopping Signed-off-by: Ettore Di Giacinto --- pkg/discovery/dht.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/discovery/dht.go b/pkg/discovery/dht.go index e359d947..f81e4244 100644 --- a/pkg/discovery/dht.go +++ b/pkg/discovery/dht.go @@ -123,7 +123,7 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err for { select { case <-t.C: - connect() + go connect() case <-ctx.Done(): return }