Fix no auth "this._updateState" bug

Fixes #735
This commit is contained in:
Lee-Feng 2016-12-20 15:37:31 +08:00 committed by Samuel Mannehed
parent c01b2f0259
commit 558544364c
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@
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._rfb_init_state = 'SecurityResult';
return true;
}