From ed766ca4a94eecd4b54bb53190ddb78aed7182fa Mon Sep 17 00:00:00 2001 From: Martin Sander Date: Fri, 4 Aug 2017 13:47:35 +0200 Subject: [PATCH] InterruptedIOException when being interrupted as suggested by @iocanel --- .../plugins/kubernetes/pipeline/ContainerExecDecorator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java index 76069d3290..13eae2c8b7 100755 --- a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java +++ b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java @@ -19,6 +19,7 @@ import static org.csanchez.jenkins.plugins.kubernetes.pipeline.Constants.*; import java.io.IOException; +import java.io.InterruptedIOException; import java.io.OutputStream; import java.io.PrintStream; import java.io.Serializable; @@ -175,7 +176,7 @@ public void onClose(int i, String s) { started.await(); } catch (InterruptedException e) { closeWatch(watch); - throw new IOException("interrupted while waiting for websocket connection"); + throw new InterruptedIOException("interrupted while waiting for websocket connection"); } try {