diff --git a/core/rfb.js b/core/rfb.js index 91d9a6ff..8e9c5700 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -572,7 +572,11 @@ break; } this._rfb_disconnect_reason = msg; + + // Transition to disconnected without waiting for socket to close this._updateConnectionState('disconnecting'); + this._updateConnectionState('disconnected'); + return false; },