From 59fc5a09e58a9d5e00597a795ef9857b2f1c014b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hozda?= Date: Tue, 18 Aug 2020 23:16:50 +0200 Subject: [PATCH] prevent tempfile from being deleted too soon --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 67162ed..7212e59 100644 --- a/src/main.rs +++ b/src/main.rs @@ -170,6 +170,7 @@ impl BrowserState { fs::remove_file(&self.tmpfilename).expect("failed to delete temp file"); return false; } + tmpfile.keep(); return true; }