Skip to content

Commit 8664f86

Browse files
author
Nicholas Moschopoulos
committed
added small fix to prevent server from crashing on empty this.state
1 parent f429240 commit 8664f86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Receiver.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ Receiver.prototype.processPacket = function (data) {
219219
*/
220220

221221
Receiver.prototype.endPacket = function() {
222+
if (this.dead) return;
222223
if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true);
223224
else if (this.state.lastFragment) this.fragmentedBufferPool.reset(false);
224225
this.expectOffset = 0;

0 commit comments

Comments
 (0)