mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Make sure chunk gets reset after every read loop.
This commit is contained in:
parent
692c043f6e
commit
bff4b7bafe
1 changed files with 1 additions and 0 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue