Browse Source

Fix occasionally thrown IOException when the stream has already been closed

with alwaysCreate.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276130 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
6d7fe80488
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/util/LazyFileOutputStream.java

+ 1
- 1
src/main/org/apache/tools/ant/util/LazyFileOutputStream.java View File

@@ -93,7 +93,7 @@ public class LazyFileOutputStream extends OutputStream {
}

public synchronized void close() throws IOException {
if (alwaysCreate) {
if (alwaysCreate && !closed) {
ensureOpened();
}
if (opened) {


Loading…
Cancel
Save