Fail if initial server connection fails.

This commit is contained in:
Joel Martin
2010-07-20 14:54:49 -05:00
parent 2c2b492c0c
commit f55b6b4185

View File

@@ -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');
}