Browse files

Stream.prototype.pipe: Don't stop piping when the destination stream …

…emits 'end'.

The 'end' event has nothing to do with the "writable stream-ness" of an object,
and the current behavior breaks a number of use cases with readable/writable

As far as I can tell the offending line was introduced by accident in 2a65d29.
  • Loading branch information...
papandreou committed Mar 15, 2012
1 parent d2fba2b commit 1145158ee9db1d0f6c2e544277446ee40e9c10f7
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/stream.js
@@ -112,7 +112,6 @@ Stream.prototype.pipe = function(dest, options) {
source.on('end', cleanup);
source.on('close', cleanup);
- dest.on('end', cleanup);
dest.on('close', cleanup);
dest.emit('pipe', source);

0 comments on commit 1145158

Please sign in to comment.