From 21019fde412e33ee6f31769f57244d9d5ca6f154 Mon Sep 17 00:00:00 2001 From: noctuum <25441068+noctuum@users.noreply.github.com> Date: Fri, 28 Aug 2026 06:32:53 +0500 Subject: [PATCH] Add the download to the stopped view when a hash check contradicts d.complete. Setting d.state alone left it in the started view, where d.start cannot restore it. --- 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 8dfd86d3..b67f590a 100644 --- a/src/core/download_list.cc +++ b/src/core/download_list.cc @@ -554,7 +554,7 @@ DownloadList::hash_done(Download* download) { // If the download was previously completed but the files were // f.ex deleted, then we clear the state and complete. if (rpc::call_command_value("d.complete", rpc::make_target(download)) && !download->is_done()) { - rpc::call_command("d.state.set", (int64_t)0, rpc::make_target(download)); + set_state_stopped(download); download->set_message("Download registered as completed, but hash check returned unfinished chunks."); }