mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-06-22 10:02:20 +00:00
fix(update): early drop unused file
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
04dd5d162e
commit
9fea95b8af
1 changed files with 1 additions and 0 deletions
|
|
@ -413,6 +413,7 @@ fn write_verified_download_from_reader<R: Read>(
|
|||
std::fs::remove_file(temp_path).ok();
|
||||
return Err(e);
|
||||
}
|
||||
drop(file);
|
||||
if let Err(e) = install_verified_download(&temp_path, final_path) {
|
||||
std::fs::remove_file(temp_path).ok();
|
||||
return Err(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue