mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 05:06:16 +00:00
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.
This commit is contained in:
@@ -554,7 +554,7 @@ DownloadList::hash_done(Download* download) {
|
|||||||
// If the download was previously completed but the files were
|
// If the download was previously completed but the files were
|
||||||
// f.ex deleted, then we clear the state and complete.
|
// f.ex deleted, then we clear the state and complete.
|
||||||
if (rpc::call_command_value("d.complete", rpc::make_target(download)) && !download->is_done()) {
|
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.");
|
download->set_message("Download registered as completed, but hash check returned unfinished chunks.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user