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 @@ -210,7 +210,7 @@ public void run() {
210
210
public static void setSslContext (SSLContext sslContext ) {
211
211
IOConnection .sslContext = sslContext ;
212
212
}
213
-
213
+
214
214
/**
215
215
* Get the socket factory used for SSL connections.
216
216
*
@@ -484,7 +484,7 @@ private synchronized void resetTimeout() {
484
484
if (heartbeatTimeoutTask != null ) {
485
485
heartbeatTimeoutTask .cancel ();
486
486
}
487
- if (getState () != STATE_INVALID ) {
487
+ if (getState () != STATE_INVALID ) {
488
488
heartbeatTimeoutTask = new HearbeatTimeoutTask ();
489
489
backgroundTimer .schedule (heartbeatTimeoutTask , closingTimeout
490
490
+ heartbeatTimeout );
@@ -863,7 +863,8 @@ private synchronized int getState() {
863
863
* the new state
864
864
*/
865
865
private synchronized void setState (int state ) {
866
- this .state = state ;
866
+ if (getState () != STATE_INVALID )
867
+ this .state = state ;
867
868
}
868
869
869
870
/**
You can’t perform that action at this time.
0 commit comments