From 206bcde06fa14f0ee881ee795580b75eca056677 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Sat, 31 Aug 2024 12:56:10 +0100 Subject: [PATCH] Attempting to connect even if we have full torrent (as other clients do, to attempt upload) --- crates/librqbit/src/torrent_state/live/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/librqbit/src/torrent_state/live/mod.rs b/crates/librqbit/src/torrent_state/live/mod.rs index 5c150d2..5684b04 100644 --- a/crates/librqbit/src/torrent_state/live/mod.rs +++ b/crates/librqbit/src/torrent_state/live/mod.rs @@ -523,7 +523,7 @@ impl TorrentStateLive { let state = self; loop { 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); state.peers.mark_peer_not_needed(addr); continue;