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

View file

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