From a65784374bc9bc8c87be2f6b4d44c1d9ef1f24be Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 22 Jan 2019 01:16:41 +0100 Subject: [PATCH] Fix cancellation of dht announce when peers are wanted --- torrent.go | 1 - 1 file changed, 1 deletion(-) diff --git a/torrent.go b/torrent.go index 9e253492..9edfdc8f 100644 --- a/torrent.go +++ b/torrent.go @@ -1346,7 +1346,6 @@ func (t *Torrent) announceToDht(impliedPort bool, s *dht.Server) error { select { case <-t.closed.LockedChan(t.cl.locker()): case <-time.After(5 * time.Minute): - case <-t.wantPeersEvent.LockedChan(t.cl.locker()): } ps.Close() return nil -- 2.48.1