diff --git a/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java b/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java index 73106df02..94372bca0 100644 --- a/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java +++ b/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java @@ -87,7 +87,8 @@ void writeTo(ZipArchiveOutputStream target, Set entries) throws IOExcept try (BoundedInputStream rawStream = BoundedInputStream.builder() .setInputStream(stream) - .setMaxCount(entry.getCompressedSize()).get()) { + .setMaxCount(entry.getCompressedSize()) + .setPropagateClose(false).get()) { target.addRawArchiveEntry(entry, rawStream); } } else {