* Expand the path when unlinking the tied file.

* Use DownloadWrapper* to identify hashing chunks, rather than the
info hash.

* When hashing fails, retry the most common blocks.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@729 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-24 23:48:26 +00:00
parent 8be667e935
commit d35bef6791
4 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -45,6 +45,7 @@
#include <rak/address_info.h>
#include <rak/error_number.h>
#include <rak/regex.h>
#include <rak/path.h>
#include <rak/string_manip.h>
#include <sigc++/bind.h>
#include <sigc++/hide.h>
@@ -112,7 +113,7 @@ delete_tied(Download* d) {
if (tie.empty())
return;
if (::unlink(tie.c_str()) == -1)
if (::unlink(rak::path_expand(tie).c_str()) == -1)
control->core()->push_log("Could not unlink tied file: " + std::string(rak::error_number::current().c_str()));
}