Browse Source

Catch more than IOExceptions in stream pumper to take care of strange

close conditions where another thread can close the stream after the
ensureOpen check has been done.

PR:	13372


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274091 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
4856ac66d8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/StreamPumper.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/StreamPumper.java View File

@@ -122,7 +122,7 @@ public class StreamPumper implements Runnable {
if (closeWhenExhausted) {
os.close();
}
} catch (IOException e) {
} catch (Exception e) {
// ignore errors
} finally {
synchronized (this) {


Loading…
Cancel
Save