projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6b2152
)
Fix cancellation of dht announce when peers are wanted
author
Matt Joiner <anacrolix@gmail.com>
Tue, 22 Jan 2019 00:16:41 +0000 (
01:16
+0100)
committer
Matt Joiner <anacrolix@gmail.com>
Tue, 22 Jan 2019 00:16:41 +0000 (
01:16
+0100)
torrent.go
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index 9e25349272eeb0b904a555a0a0385fb03954b6a8..9edfdc8f1e66e48573359fb4f9540cc01585ac7a 100644
(file)
--- 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