We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3fd246 commit b73118eCopy full SHA for b73118e
util/src/main/java/io/kubernetes/client/Exec.java
@@ -181,6 +181,7 @@ public Process exec(
181
private static class ExecProcess extends Process {
182
private final WebSocketStreamHandler streamHandler;
183
private volatile int statusCode;
184
+ private volatile boolean isDestroyed = false;
185
186
public ExecProcess() throws IOException {
187
this.statusCode = -1;
@@ -215,7 +216,8 @@ public void close() {
215
216
ExecProcess.this.notifyAll();
217
}
218
- super.close();
219
+
220
+ if (isDestroyed) super.close();
221
222
};
223
@@ -263,6 +265,7 @@ public int exitValue() {
263
265
264
266
@Override
267
public void destroy() {
268
+ isDestroyed = true;
269
streamHandler.close();
270
271
0 commit comments