1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

Make sure chunk gets reset after every read loop.

This commit is contained in:
Simo Kinnunen 2015-09-14 19:36:40 +09:00
parent 692c043f6e
commit bff4b7bafe

View file

@ -230,6 +230,7 @@ VncConnection.prototype._read = function() {
while (this._append(this.conn.read())) {
do {
debug('state', StateReverse[this._state])
chunk = null
switch (this._state) {
case VncConnection.STATE_NEED_CLIENT_VERSION:
if ((chunk = this._consume(12))) {