* Print to the log when close_on_diskspace gets triggered.

* Cleared out unused TextElement code.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@994 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-10-25 09:13:30 +00:00
parent 4038e78665
commit d13e502ee4
8 changed files with 18 additions and 235 deletions
+6
View File
@@ -236,6 +236,7 @@ void
apply_close_low_diskspace(int64_t arg) {
core::DownloadList* downloadList = control->core()->download_list();
bool closed = false;
core::Manager::DListItr itr = downloadList->begin();
while ((itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_downloading)))
@@ -245,10 +246,15 @@ apply_close_low_diskspace(int64_t arg) {
(*itr)->set_hash_failed(true);
(*itr)->set_message(std::string("Low diskspace."));
closed = true;
}
++itr;
}
if (closed)
control->core()->push_log("Closed torrents due to low diskspace.");
}
torrent::Object