summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej MaƂecki <maciej.malecki@notimplemented.org>2012-05-27 23:29:00 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-05-28 01:35:36 +0200
commitc96df0e37aed536867a41e8b6d3f0f523c37dfea (patch)
tree658a1df81cab3c3e2a7fc8a492f90ae236a25db3
parent0fd28345392c2a16dfe143d2467ab14a236ce3c3 (diff)
downloadnode-new-c96df0e37aed536867a41e8b6d3f0f523c37dfea.tar.gz
stream: don't call `cleanup` twice on `end` and `close`
-rw-r--r--lib/stream.js6
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();
}