Skip to content

Commit 18bcb11

Browse files
committed
[fix] Reset the fragment counter when the message is complete
Fixes #2333
1 parent 98fce81 commit 18bcb11

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
@@ -526,6 +526,7 @@ class Receiver extends Writable {
526526
this._totalPayloadLength = 0;
527527
this._messageLength = 0;
528528
this._fragmented = 0;
529+
this._numFragments = 0;
529530
this._fragments = [];
530531

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

0 commit comments

Comments
 (0)