Skip to content

Commit

Permalink
Merge pull request #595 from nkzawa/patch-5
Browse files Browse the repository at this point in the history
Fix error when permessage-deflate is enabled
  • Loading branch information
3rd-Eden committed Nov 27, 2015
2 parents d5597bb + 7d07112 commit 97d8a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Receiver.js
Expand Up @@ -245,7 +245,7 @@ Receiver.prototype.processPacket = function (data) {

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

0 comments on commit 97d8a7d

Please sign in to comment.