diff --git a/src/write.rs b/src/write.rs index 8f365860..1282ea6f 100644 --- a/src/write.rs +++ b/src/write.rs @@ -498,7 +498,6 @@ impl ZipWriter { } self.writing_to_file = false; - self.writing_raw = false; Ok(()) } @@ -538,6 +537,7 @@ impl ZipWriter { return Err(e); } self.writing_to_file = true; + self.writing_raw = false; Ok(()) }