don't indicate interest in peers when in upload only mode

If the torrent is paused we don't want to mark peers as interesting
even if the torrent has not finished downloading.
This commit is contained in:
Steven Siloti 2016-12-08 11:00:12 -08:00 committed by Arvid Norberg
parent a39f3714b2
commit 30303c17df
1 changed files with 1 additions and 1 deletions

View File

@ -1929,7 +1929,7 @@ namespace libtorrent
// calling disconnect_if_redundant, otherwise we may disconnect even if
// we are interested
if (!t->has_piece_passed(index)
&& !t->is_seed()
&& !t->is_upload_only()
&& !is_interesting()
&& (!t->has_picker() || t->picker().piece_priority(index) != 0))
t->peer_is_interesting(*this);