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:
Arvid Norberg
2009-05-07 06:41:41 +00:00
parent bc20af9375
commit 838df44184
5 changed files with 51 additions and 7 deletions

View File

@@ -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