Drop file when finished
This commit is contained in:
parent
76dfd825f3
commit
696415770e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue