Fix memory leak in HubConnection (#20099)
This commit is contained in:
parent
543e73b6b8
commit
196f4489e1
|
|
@ -518,6 +518,11 @@ public class HubConnection {
|
|||
connectionState = null;
|
||||
}
|
||||
|
||||
if (pingTimer != null) {
|
||||
pingTimer.cancel();
|
||||
pingTimer = null;
|
||||
}
|
||||
|
||||
logger.info("HubConnection stopped.");
|
||||
hubConnectionState = HubConnectionState.DISCONNECTED;
|
||||
handshakeResponseSubject.onComplete();
|
||||
|
|
|
|||
Loading…
Reference in New Issue