Skip to content

Commit 24625ac

Browse files
committed
Merge pull request #336 from MosNicholas/nmos_server_crash_fix
added small fix to prevent server from crashing on empty this.state
2 parents e62cf35 + 8664f86 commit 24625ac

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
@@ -252,6 +252,7 @@ Receiver.prototype.processPacket = function (data) {
252252
*/
253253

254254
Receiver.prototype.endPacket = function() {
255+
if (this.dead) return;
255256
if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true);
256257
else if (this.state.lastFragment) this.fragmentedBufferPool.reset(true);
257258
this.expectOffset = 0;

0 commit comments

Comments
 (0)