File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ public void run() {
213
213
public static void setSslContext (SSLContext sslContext ) {
214
214
IOConnection .sslContext = sslContext ;
215
215
}
216
-
216
+
217
217
/**
218
218
* Get the socket factory used for SSL connections.
219
219
*
@@ -487,7 +487,7 @@ private synchronized void resetTimeout() {
487
487
if (heartbeatTimeoutTask != null ) {
488
488
heartbeatTimeoutTask .cancel ();
489
489
}
490
- if (getState () != STATE_INVALID ) {
490
+ if (getState () != STATE_INVALID ) {
491
491
heartbeatTimeoutTask = new HearbeatTimeoutTask ();
492
492
backgroundTimer .schedule (heartbeatTimeoutTask , closingTimeout
493
493
+ heartbeatTimeout );
@@ -885,7 +885,8 @@ private synchronized int getState() {
885
885
* the new state
886
886
*/
887
887
private synchronized void setState (int state ) {
888
- this .state = state ;
888
+ if (getState () != STATE_INVALID )
889
+ this .state = state ;
889
890
}
890
891
891
892
/**
You can’t perform that action at this time.
0 commit comments