Browse Source

Fail if initial server connection fails.

Joel Martin 15 years ago
parent
commit
f55b6b4185
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/vnc.js

+ 2 - 0
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');
         }