From 0c8f6baf982504f939632e552ca46a311ac62512 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sun, 22 Jan 2023 15:37:27 +0100 Subject: [PATCH] Only swallow 'Stream closed' IOExceptions --- .../main/java/sop/external/operation/DetachedSignExternal.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external-sop/src/main/java/sop/external/operation/DetachedSignExternal.java b/external-sop/src/main/java/sop/external/operation/DetachedSignExternal.java index 3e369f1..7c579d4 100644 --- a/external-sop/src/main/java/sop/external/operation/DetachedSignExternal.java +++ b/external-sop/src/main/java/sop/external/operation/DetachedSignExternal.java @@ -100,6 +100,9 @@ public class DetachedSignExternal implements DetachedSign { processOut.close(); } catch (IOException e) { // Ignore Stream closed + if (!"Stream closed".equals(e.getMessage())) { + throw e; + } } while ((r = processIn.read(buf)) > 0) {