From b857acd081f7915eb9b6dfdeef2a6cccad4bc687 Mon Sep 17 00:00:00 2001 From: noctuum <25441068+noctuum@users.noreply.github.com> Date: Fri, 18 Sep 2026 13:03:28 +0500 Subject: [PATCH] Increment d.state_counter on pause The start path increments it; the pause path assigned it to itself. --- src/core/download_list.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/download_list.cc b/src/core/download_list.cc index 47b57084..2919e01a 100644 --- a/src/core/download_list.cc +++ b/src/core/download_list.cc @@ -301,7 +301,7 @@ DownloadList::set_state_stopped(Download* download) { void DownloadList::update_paused_state(Download* download) { rpc::call_command("d.state_changed.set", torrent::this_thread::cached_seconds().count(), rpc::make_target(download)); - rpc::call_command("d.state_counter.set", rpc::call_command_value("d.state_counter", rpc::make_target(download)), rpc::make_target(download)); + rpc::call_command("d.state_counter.set", rpc::call_command_value("d.state_counter", rpc::make_target(download)) + 1, rpc::make_target(download)); // If initial seeding is complete, don't try it again when restarting. if (download->is_done() &&