diff options
author | Maciej MaĆecki <maciej.malecki@notimplemented.org> | 2012-05-27 23:29:00 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-28 01:35:36 +0200 |
commit | c96df0e37aed536867a41e8b6d3f0f523c37dfea (patch) | |
tree | 658a1df81cab3c3e2a7fc8a492f90ae236a25db3 | |
parent | 0fd28345392c2a16dfe143d2467ab14a236ce3c3 (diff) | |
download | node-new-c96df0e37aed536867a41e8b6d3f0f523c37dfea.tar.gz |
stream: don't call `cleanup` twice on `end` and `close`
-rw-r--r-- | lib/stream.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/stream.js b/lib/stream.js index d6da2525f9..600416396f 100644 --- a/lib/stream.js +++ b/lib/stream.js @@ -63,9 +63,6 @@ Stream.prototype.pipe = function(dest, options) { if (didOnEnd) return; didOnEnd = true; - // remove the listeners - cleanup(); - dest.end(); } @@ -74,9 +71,6 @@ Stream.prototype.pipe = function(dest, options) { if (didOnEnd) return; didOnEnd = true; - // remove the listeners - cleanup(); - dest.destroy(); } |