Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

stream: don't call `cleanup` twice on `end` and `close`

  • Loading branch information...
mmalecki authored and bnoordhuis committed May 27, 2012
1 parent 0fd2834 commit c96df0e37aed536867a41e8b6d3f0f523c37dfea
Showing with 0 additions and 6 deletions.
  1. +0 −6 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();
}

0 comments on commit c96df0e

Please sign in to comment.
You can’t perform that action at this time.