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