torrent.go | 3 ++- diff --git a/torrent.go b/torrent.go index 244d3281b06f140c24266002cb1cdb53aa7824a2..45540b68589c1f2d8bdafd24b6d71616ab874490 100644 --- a/torrent.go +++ b/torrent.go @@ -1405,6 +1405,7 @@ t.openNewConns() } } +// Peers as in contact information for dialing out. func (t *Torrent) wantPeers() bool { if t.closed.IsSet() { return false @@ -1412,7 +1413,7 @@ } if t.peers.Len() > t.cl.config.TorrentPeersLowWater { return false } - return t.needData() || t.seeding() + return t.wantConns() } func (t *Torrent) updateWantPeersEvent() {