fix typo in move_storage
This commit is contained in:
@@ -2241,7 +2241,7 @@ namespace libtorrent
|
||||
#endif
|
||||
TORRENT_ASSERT(j.buffer == 0);
|
||||
ret = j.storage->move_storage_impl(j.str, j.piece);
|
||||
if (ret != piece_manager::file_exist)
|
||||
if (ret == piece_manager::file_exist)
|
||||
{
|
||||
j.error = error_code(boost::system::errc::file_exists, get_system_category());
|
||||
j.error_file = -1;
|
||||
|
@@ -144,6 +144,7 @@ void on_move_storage_exist(int ret, bool* done, disk_io_job const& j, std::strin
|
||||
std::cerr << "on_move_storage_exist ret: " << ret << " path: " << j.str << std::endl;
|
||||
TEST_EQUAL(ret, piece_manager::file_exist);
|
||||
TEST_EQUAL(j.str, path);
|
||||
TEST_EQUAL(j.error, error_code(boost::system::errc::file_exists, get_system_category()));
|
||||
*done = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user