]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix cancellation of dht announce when peers are wanted
authorMatt Joiner <anacrolix@gmail.com>
Tue, 22 Jan 2019 00:16:41 +0000 (01:16 +0100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 22 Jan 2019 00:16:41 +0000 (01:16 +0100)
torrent.go

index 9e25349272eeb0b904a555a0a0385fb03954b6a8..9edfdc8f1e66e48573359fb4f9540cc01585ac7a 100644 (file)
@@ -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