prevent tempfile from being deleted too soon

master
Lukáš Hozda 4 years ago
parent f37258f294
commit 59fc5a09e5

@ -170,6 +170,7 @@ impl BrowserState {
fs::remove_file(&self.tmpfilename).expect("failed to delete temp file"); fs::remove_file(&self.tmpfilename).expect("failed to delete temp file");
return false; return false;
} }
tmpfile.keep();
return true; return true;
} }

Loading…
Cancel
Save