Fix IOException when trying to close already-closed output stream

This commit is contained in:
Paul Schaub 2023-01-13 16:06:17 +01:00
parent 6e40c7dc17
commit 125eefed6e
1 changed files with 5 additions and 1 deletions

View File

@ -301,7 +301,11 @@ public class ExternalSOP implements SOP {
}
standardIn.close();
processOut.close();
try {
processOut.close();
} catch (IOException e) {
// ignore
}
while ((r = processIn.read(buf)) > 0) {
outputStream.write(buf, 0 , r);