mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-12-22 21:07:57 +01:00
Fix IOException when trying to close already-closed output stream
This commit is contained in:
parent
6e40c7dc17
commit
125eefed6e
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue