summaryrefslogtreecommitdiff
path: root/src/io/CompressableDataWriter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/CompressableDataWriter.java')
-rw-r--r--src/io/CompressableDataWriter.java4
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 {