diff options
-rw-r--r-- | src/io/CompressableDataWriter.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io/CompressableDataWriter.java b/src/io/CompressableDataWriter.java index 32531d1..d06c6cd 100644 --- a/src/io/CompressableDataWriter.java +++ b/src/io/CompressableDataWriter.java @@ -66,6 +66,10 @@ public class CompressableDataWriter extends DataWriter { @Override public void open() throws IOException { + if (os != null) { + // already open, don't bother. + return; + } // throws FileNotFoundException if the dirs do not exist... os = new FileOutputStream(getFileNameGz(), true); try { |