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(()) } }