This commit is contained in:
Scott E. Graves 2024-11-07 14:13:30 -06:00
parent 3535a61844
commit 02b74402f4

View File

@ -449,6 +449,7 @@ auto open_file::close() -> bool {
return true;
}
{
auto err = get_api_error();
if (err == api_error::success || err == api_error::download_incomplete ||
err == api_error::download_stopped) {
@ -457,9 +458,10 @@ auto open_file::close() -> bool {
} else if (not modified_ && (fsi_.size > 0U) && not read_state_.all()) {
set_api_error(api_error::download_stopped);
}
err = get_api_error();
}
}
auto err = get_api_error();
nf_->close();