GUACAMOLE-1849: Fix a bug in Parser.js where receive would reparse instructions multiple times.
This commit is contained in:
1 parent
162ae47a2a
commit
f9c9481a87
1 file changed
+1
-1
@@ -208,7 +208,7 @@ Guacamole.Parser = function Parser() {
|
|||||||
// Immediately truncate buffer if its contents have been
|
// Immediately truncate buffer if its contents have been
|
||||||
// completely parsed, so that the next call to receive()
|
// completely parsed, so that the next call to receive()
|
||||||
// need not append to the buffer unnecessarily
|
// need not append to the buffer unnecessarily
|
||||||
if (elementEnd + 1 === buffer.length) {
|
if (!isBuffer && elementEnd + 1 === buffer.length) {
|
||||||
elementEnd = -1;
|
elementEnd = -1;
|
||||||
buffer = '';
|
buffer = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user