From f55b6b418512b2579ba80e57899ffbad587976c9 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 20 Jul 2010 14:54:49 -0500 Subject: [PATCH] Fail if initial server connection fails. --- include/vnc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/vnc.js b/include/vnc.js index 030e2b09..4b77bc6e 100644 --- a/include/vnc.js +++ b/include/vnc.js @@ -1578,6 +1578,8 @@ init_ws: function () { Util.Debug(">> WebSocket.onclose"); if (RFB.state === 'normal') { RFB.updateState('failed', 'Server disconnected'); + } else if (RFB.state === 'ProtocolVersion') { + RFB.updateState('failed', 'Failed to connect to server'); } else { RFB.updateState('disconnected', 'VNC disconnected'); }