fix
This commit is contained in:
parent
13ad145811
commit
317325aeb8
@ -474,11 +474,14 @@ auto open_file::close() -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
if (err != api_error::success || read_state_.all()) {
|
||||
mgr_.remove_resume(get_api_path(), get_source_path());
|
||||
}
|
||||
|
||||
if (err == api_error::success) {
|
||||
return true;
|
||||
}
|
||||
|
||||
mgr_.remove_resume(get_api_path(), get_source_path());
|
||||
if (not utils::file::file(fsi_.source_path).remove()) {
|
||||
utils::error::raise_api_path_error(
|
||||
function_name, get_api_path(), fsi_.source_path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user