Skip to content

Commit

Permalink
Adding stream.destory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgco committed Oct 17, 2012
1 parent 751fe97 commit c3d0615
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/storeStream.js
Expand Up @@ -103,6 +103,11 @@ StoreStream.prototype._process = function() {
self._process();
};

StoreStream.prototype.destory = function() {
this._paused = true;
StoreStream.prototype.end.call(this);
};

StoreStream.prototype.pause = function() {
this._paused = true;
this.emit('pause');
Expand Down

0 comments on commit c3d0615

Please sign in to comment.