mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-20 16:16:17 +00:00
* When a chunk hash fails, copy the data to buffers and try again.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@728 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+6
-3
@@ -105,12 +105,15 @@ receive_tracker_dump(const std::string& url, const char* data, size_t size) {
|
|||||||
// Hmm... find some better place for all this.
|
// Hmm... find some better place for all this.
|
||||||
static void
|
static void
|
||||||
delete_tied(Download* d) {
|
delete_tied(Download* d) {
|
||||||
const std::string tie = d->variable()->get("tied_to_file").as_string();
|
const std::string tie = d->variable()->get_string("tied_to_file");
|
||||||
|
|
||||||
// This should be configurable, need to wait for the variable
|
// This should be configurable, need to wait for the variable
|
||||||
// thingie to be implemented.
|
// thingie to be implemented.
|
||||||
if (!tie.empty())
|
if (tie.empty())
|
||||||
::unlink(tie.c_str());
|
return;
|
||||||
|
|
||||||
|
if (::unlink(tie.c_str()) == -1)
|
||||||
|
control->core()->push_log("Could not unlink tied file: " + std::string(rak::error_number::current().c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Manager::Manager() :
|
Manager::Manager() :
|
||||||
|
|||||||
Reference in New Issue
Block a user