File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
util/src/main/java/io/kubernetes/client/util Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,6 @@ public Throwable getError() {
111
111
@ Override
112
112
public synchronized void close () {
113
113
if (state != State .CLOSED ) {
114
- state = State .CLOSED ;
115
- if (null != socket ) {
116
- // code 1000 means "Normal Closure"
117
- socket .close (1000 , "Triggered client-side terminate" );
118
- log .debug ("Successfully closed socket." );
119
- }
120
114
// Close all output streams. Caller of getInputStream(int) is responsible
121
115
// for closing returned input streams
122
116
for (PipedOutputStream out : pipedOutput .values ()) {
@@ -143,6 +137,13 @@ public synchronized void close() {
143
137
log .error ("Error on close" , ex );
144
138
}
145
139
}
140
+
141
+ state = State .CLOSED ;
142
+ if (null != socket ) {
143
+ // code 1000 means "Normal Closure"
144
+ socket .close (1000 , "Triggered client-side terminate" );
145
+ log .debug ("Successfully closed socket." );
146
+ }
146
147
}
147
148
notifyAll ();
148
149
}
You can’t perform that action at this time.
0 commit comments