mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix move_storage behavior
This commit is contained in:
parent
b5673d563e
commit
7eef1a418e
1 changed files with 1 additions and 8 deletions
|
@ -216,14 +216,7 @@ namespace libtorrent
|
||||||
break;
|
break;
|
||||||
case disk_io_job::move_storage:
|
case disk_io_job::move_storage:
|
||||||
ret = j.storage->move_storage_impl(j.str) ? 1 : 0;
|
ret = j.storage->move_storage_impl(j.str) ? 1 : 0;
|
||||||
if(ret)
|
if (ret) j.str = j.storage->save_path().string();
|
||||||
{
|
|
||||||
j.str = "move_success";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
j.str = "move_failed";
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case disk_io_job::release_files:
|
case disk_io_job::release_files:
|
||||||
j.storage->release_files_impl();
|
j.storage->release_files_impl();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue