From 6e67bfcda5d7c4c45a942db0bfef98e5b7d0eb23 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 4 May 2023 12:13:19 -0700 Subject: [PATCH] Bug fix --- src/write.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 729d9395..664648d6 100644 --- a/src/write.rs +++ b/src/write.rs @@ -348,7 +348,9 @@ impl ZipWriter { self.abort_file().unwrap(); return Err(e.into()); } - self.finish_file() + self.writing_to_file = false; + self.writing_raw = false; + Ok(()) } }