Commit f55b6b41 authored by Joel Martin's avatar Joel Martin

Fail if initial server connection fails.

parent 2c2b492c
...@@ -1578,6 +1578,8 @@ init_ws: function () { ...@@ -1578,6 +1578,8 @@ init_ws: function () {
Util.Debug(">> WebSocket.onclose"); Util.Debug(">> WebSocket.onclose");
if (RFB.state === 'normal') { if (RFB.state === 'normal') {
RFB.updateState('failed', 'Server disconnected'); RFB.updateState('failed', 'Server disconnected');
} else if (RFB.state === 'ProtocolVersion') {
RFB.updateState('failed', 'Failed to connect to server');
} else { } else {
RFB.updateState('disconnected', 'VNC disconnected'); RFB.updateState('disconnected', 'VNC disconnected');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment