diff --git a/src/common/lib/transport/connectionmanager.ts b/src/common/lib/transport/connectionmanager.ts index 1e5316fdb..fc8275eb3 100644 --- a/src/common/lib/transport/connectionmanager.ts +++ b/src/common/lib/transport/connectionmanager.ts @@ -1450,8 +1450,6 @@ class ConnectionManager extends EventEmitter { if (transportPreference && transportPreference === this.baseTransport && this.webSocketTransportAvailable) { this.checkWsConnectivity() .then(() => { - this.wsCheckResult = true; - this.abandonedWebSocket = false; this.unpersistTransportPreference(); if (this.state === this.states.connecting) { Logger.logAction( @@ -1493,6 +1491,8 @@ class ConnectionManager extends EventEmitter { */ connectWs(transportParams: TransportParams, connectCount: number) { Logger.logAction(this.logger, Logger.LOG_MICRO, 'ConnectionManager.connectWs()'); + this.wsCheckResult = null; + this.abandonedWebSocket = false; this.startWebSocketSlowTimer(); this.startWebSocketGiveUpTimer(transportParams);