Skip to content

Commit

Permalink
Remove readStream after destroy because of limit in SortJoinStream
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Dec 30, 2013
1 parent b9e2e06 commit 0f35a87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sortjoinstream.js
Expand Up @@ -137,6 +137,7 @@ SortJoinStream.prototype._doRead = function doRead(triple) {
if (this.limit && ++this._limitCounter === this.limit) {
this._previousTriple = null;
this._readStream.destroy();
this._readStream = null;
return;
}
}
Expand Down

0 comments on commit 0f35a87

Please sign in to comment.