Permalink
Browse files

[api] Add `BufferedStream#destroy` method

  • Loading branch information...
mmalecki committed Jun 11, 2012
1 parent d022663 commit a7b354e75eb607fc8ec6fb28873c764150c775ae
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/buffered-stream.js
View
@@ -113,6 +113,11 @@ BufferedStream.prototype.end = function () {
this.emit('end');
};
+BufferedStream.prototype.destroy = function () {
+ this.readable = false;
+ this.writable = false;
+};
+
BufferedStream.prototype.close = function () {
this.readable = false;
this.closed = true;

0 comments on commit a7b354e

Please sign in to comment.