Attempting to connect even if we have full torrent (as other clients do, to attempt upload)

This commit is contained in:
Igor Katson 2024-08-31 12:56:10 +01:00
parent b60ec6d919
commit 206bcde06f
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -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;