From ca59896c5efce5255de8255a7388640c76e8af02 Mon Sep 17 00:00:00 2001 From: Lee'sEngineer <474609810@qq.com> Date: Thu, 15 Dec 2016 13:52:02 +0800 Subject: [PATCH] Fix no auth "this._updateState" bug --- core/rfb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rfb.js b/core/rfb.js index fdb9560f..8219f524 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -915,7 +915,8 @@ if (this._sock.rQwait("sub auth count", 4)) { return false; } var subAuthCount = this._sock.rQshift32(); if (subAuthCount === 0) { // empty sub-auth list received means 'no auth' subtype selected - this._updateState('SecurityResult'); + //this._updateState('SecurityResult'); + this._rfb_init_state = 'SecurityResult'; return true; }