Split the file closing in DownloadList::close_directly() into close_files().

Callers that only need the files released should not depend on how a stop behaves.
This commit is contained in:
noctuum
2026-08-28 06:28:35 +05:00
committed by Jari Sundell
parent 072cbae0c6
commit 60eb8f0383
4 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ Download::set_root_directory(const std::string& path) {
throw torrent::input_error("Cannot change the directory of an open download after the files have been moved.");
}
control->core()->download_list()->close_directly(this);
control->core()->download_list()->close_files(this);
file_list->set_root_dir(expand_path(path));
bencode()->get_key("rtorrent").insert_key("directory", path);