This commit is contained in:
Scott E. Graves 2024-11-07 14:19:26 -06:00
parent 6a820837cc
commit 2661885cf2

View File

@ -406,14 +406,12 @@ void open_file::remove_all() {
recur_mutex_lock file_lock(file_mtx_);
open_file_base::remove_all();
set_api_error(api_error::success);
if (modified_) {
mgr_.remove_upload(get_api_path());
}
modified_ = false;
removed_ = true;
set_api_error(api_error::success);
mgr_.remove_upload(get_api_path());
}
auto open_file::resize(std::uint64_t new_file_size) -> api_error {