mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 22:22:31 +00:00
* Don't skip the last line in rc files missing the final
newline. Patch by Jussi Judin under Public Domain. * Added warnings on usage of scgi_port. * Include a file's completed chunks count in the resume data. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@973 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -124,7 +124,7 @@ apply_start_tied() {
|
||||
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
|
||||
|
||||
if (!tiedToFile.empty() && fs.update(rak::path_expand(tiedToFile)))
|
||||
control->core()->download_list()->start_normal(*itr);
|
||||
control->core()->download_list()->start_try(*itr);
|
||||
}
|
||||
|
||||
return torrent::Object();
|
||||
@@ -140,7 +140,7 @@ apply_stop_untied() {
|
||||
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
|
||||
|
||||
if (!tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
|
||||
control->core()->download_list()->stop_normal(*itr);
|
||||
control->core()->download_list()->stop_try(*itr);
|
||||
}
|
||||
|
||||
return torrent::Object();
|
||||
@@ -152,7 +152,7 @@ apply_close_untied() {
|
||||
rak::file_stat fs;
|
||||
const std::string& tiedToFile = rpc::call_command_string("d.get_tied_to_file", rpc::make_target(*itr));
|
||||
|
||||
if (!tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
|
||||
if (rpc::call_command_value("d.get_ignore_commands", rpc::make_target(*itr)) == 0 && !tiedToFile.empty() && !fs.update(rak::path_expand(tiedToFile)))
|
||||
control->core()->download_list()->close(*itr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user