Skip to content

Commit

Permalink
Merge pull request #336 from MosNicholas/nmos_server_crash_fix
Browse files Browse the repository at this point in the history
added small fix to prevent server from crashing on empty this.state
  • Loading branch information
3rd-Eden committed Apr 11, 2016
2 parents e62cf35 + 8664f86 commit 24625ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Receiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ Receiver.prototype.processPacket = function (data) {
*/

Receiver.prototype.endPacket = function() {
if (this.dead) return;
if (!this.state.fragmentedOperation) this.unfragmentedBufferPool.reset(true);
else if (this.state.lastFragment) this.fragmentedBufferPool.reset(true);
this.expectOffset = 0;
Expand Down

0 comments on commit 24625ac

Please sign in to comment.