This commit is contained in:
Starbeamrainbowlabs 2022-03-05 03:10:06 +00:00
parent 67281677ac
commit 16509e51a1
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 3 deletions

View File

@ -51,10 +51,8 @@ class FramedTransport extends EventEmitter {
*/
handle_chunk(chunk) {
// l.debug(`CHUNK length`, chunk.length, `buffer length`, this.buffer === null ? 0 : this.buffer.length);
if(this.buffer instanceof Buffer) {
if(this.buffer instanceof Buffer)
this.buffer = Buffer.concat([ this.buffer, chunk ]);
}
else
this.buffer = chunk;