diff --git a/kasmweb/core/rfb.js b/kasmweb/core/rfb.js index 2c06cd4..2644ace 100644 --- a/kasmweb/core/rfb.js +++ b/kasmweb/core/rfb.js @@ -897,8 +897,8 @@ export default class RFB extends EventTargetMixin { // Message Handlers _negotiate_protocol_version() { - if (this._sock.rQlen < 12) { - return this._fail("Received incomplete protocol version."); + if (this._sock.rQwait("version", 12)) { + return false; } const sversion = this._sock.rQshiftStr(12).substr(4, 7);