documented file_rename_failed_alert and file_renamed_alert. they were previously not documented. Fixed bug where the storage would be left in an error state (and eventually pause the torrent) when a rename_file() failed. The error is now only reported back through the alert
This commit is contained in:
@@ -1524,6 +1524,11 @@ namespace libtorrent
|
||||
m_log << log_time() << " rename_file" << std::endl;
|
||||
#endif
|
||||
ret = j.storage->rename_file_impl(j.piece, j.str);
|
||||
if (ret != 0)
|
||||
{
|
||||
test_error(j);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
|
Reference in New Issue
Block a user