fix pong timeout

This commit is contained in:
tiagosiebler
2021-02-06 17:05:41 +00:00
parent dc34947d40
commit eac3d6bf06

View File

@@ -276,7 +276,7 @@ export class WebsocketClient extends EventEmitter {
private clearPongTimer(wsKey: string) {
const wsState = this.wsStore.get(wsKey);
if (wsState?.activePongTimer) {
clearInterval(wsState.activePongTimer);
clearTimeout(wsState.activePongTimer);
wsState.activePongTimer = undefined;
}
}