Fix no auth "this._updateState" bug

This commit is contained in:
Lee'sEngineer 2016-12-15 13:52:02 +08:00
parent c01b2f0259
commit ca59896c5e
1 changed files with 2 additions and 1 deletions

View File

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