Attempting to connect even if we have full torrent (as other clients do, to attempt upload)
This commit is contained in:
parent
b60ec6d919
commit
206bcde06f
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ impl TorrentStateLive {
|
||||||
let state = self;
|
let state = self;
|
||||||
loop {
|
loop {
|
||||||
let addr = peer_queue_rx.recv().await.context("torrent closed")?;
|
let addr = peer_queue_rx.recv().await.context("torrent closed")?;
|
||||||
if state.is_finished_and_no_active_streams() {
|
if state.torrent.options.disable_upload && state.is_finished_and_no_active_streams() {
|
||||||
debug!("ignoring peer {} as we are finished", addr);
|
debug!("ignoring peer {} as we are finished", addr);
|
||||||
state.peers.mark_peer_not_needed(addr);
|
state.peers.mark_peer_not_needed(addr);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue