From 0350b62248b32619eef7b1e9a4e11ce74621f893 Mon Sep 17 00:00:00 2001 From: tearfur <46261767+tearfur@users.noreply.github.com> Date: Wed, 12 Jul 2023 21:27:06 +0800 Subject: [PATCH] refactor: remove redundant seed limit check (#5770) --- libtransmission/torrent.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index c3097005d..674ff1e10 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -1886,7 +1886,6 @@ void tr_torrent::recheck_completeness() if (new_completeness != completeness) { bool const recent_change = downloadedCur != 0; - bool const was_leeching = !this->is_done(); bool const was_running = is_running(); if (recent_change) @@ -1921,13 +1920,6 @@ void tr_torrent::recheck_completeness() this->session->onTorrentCompletenessChanged(this, completeness, was_running); - if (this->is_done() && was_leeching && was_running) - { - /* if completeness was TR_LEECH, the seed limit check - will have been skipped in bandwidthPulse */ - tr_torrentCheckSeedLimit(this); - } - this->set_dirty(); if (this->is_done())