Skip to content

Commit

Permalink
InterruptedIOException when being interrupted
Browse files Browse the repository at this point in the history
as suggested by @iocanel
  • Loading branch information
Martin Sander committed Aug 4, 2017
1 parent 1fafc92 commit ed766ca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ed766ca

Please sign in to comment.