Skip to content

Commit 899bf9e

Browse files
committed
[fix] Reset the fragment counter when the message is complete
Fixes #2333
1 parent 1a0afaf commit 899bf9e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎lib/receiver.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ class Receiver extends Writable {
422422
this._totalPayloadLength = 0;
423423
this._messageLength = 0;
424424
this._fragmented = 0;
425+
this._numFragments = 0;
425426
this._fragments = [];
426427

427428
if (this._opcode === 2) {

0 commit comments

Comments
 (0)