Fail if initial server connection fails.
This commit is contained in:
parent
2c2b492c0c
commit
f55b6b4185
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue