forked from premiere/premiere-libtorrent
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:
parent
a39f3714b2
commit
30303c17df
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue