This commit is contained in:
Scott E. Graves 2024-12-11 14:56:36 -06:00
parent 13ad145811
commit 317325aeb8

View File

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