From: Matt Joiner Date: Tue, 22 Jan 2019 00:16:41 +0000 (+0100) Subject: Fix cancellation of dht announce when peers are wanted X-Git-Tag: v1.1.0~18 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a65784374bc9bc8c87be2f6b4d44c1d9ef1f24be;p=btrtrc.git Fix cancellation of dht announce when peers are wanted --- 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