Drop file when finished

This commit is contained in:
blank X 2021-06-22 12:48:25 +07:00
parent 76dfd825f3
commit 696415770e
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 0 deletions

View File

@ -762,6 +762,7 @@ pub async fn upload_worker(
}
}
}
drop(file);
if success {
if let Err(err) = remove_file(&video_filename) {
eprintln!("Failed to delete {}: {:?}", &video_filename, err);