tidyup
This commit is contained in:
parent
67281677ac
commit
16509e51a1
1 changed files with 1 additions and 3 deletions
|
@ -51,10 +51,8 @@ class FramedTransport extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
handle_chunk(chunk) {
|
handle_chunk(chunk) {
|
||||||
// l.debug(`CHUNK length`, chunk.length, `buffer length`, this.buffer === null ? 0 : this.buffer.length);
|
// 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 ]);
|
this.buffer = Buffer.concat([ this.buffer, chunk ]);
|
||||||
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
this.buffer = chunk;
|
this.buffer = chunk;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue