Skip to content

Commit

Permalink
Compressed output file is now flushed and closed. Thanks to John Pletka
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc committed Aug 6, 2010
1 parent 1eefa96 commit 34de897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/press/Compressor.java
Expand Up @@ -313,6 +313,8 @@ private static void writeCompressedFile(FileCompressor compressor,
for (FileInfo componentFile : componentFiles) {
compress(compressor, componentFile, out);
}
out.flush();
out.close();
long timeAfter = System.currentTimeMillis();
PressLogger.trace("Time to compress files for '%s': %d milli-seconds", file
.getRealFile().getName(), (timeAfter - timeStart));
Expand Down

0 comments on commit 34de897

Please sign in to comment.