Skip to content

Commit 4fd4ae5

Browse files
committed
fixed writing of ZIP files with textures
1 parent e3cbb69 commit 4fd4ae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

citydb-core/src/main/java/org/citydb/core/file/helper/ScatterZipOutputStream.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void writeTo(ZipArchiveOutputStream target) throws IOException {
8686

8787
try (BoundedInputStream raw = BoundedInputStream.builder()
8888
.setInputStream(stream)
89-
.setMaxCount(entry.getCompressedSize()).get()) {
89+
.setMaxCount(entry.getCompressedSize())
90+
.setPropagateClose(false).get()) {
9091
target.addRawArchiveEntry(entry, raw);
9192
}
9293
}

0 commit comments

Comments
 (0)