Skip to content
Browse files

[api] Add `BufferedStream#destroy` method

  • Loading branch information...
1 parent d022663 commit a7b354e75eb607fc8ec6fb28873c764150c775ae @mmalecki mmalecki committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/buffered-stream.js
View
5 lib/buffered-stream.js
@@ -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.
Something went wrong with that request. Please try again.