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

stream.pipe: Don't call destroy() unless it's a function

  • Loading branch information
isaacs committed Sep 10, 2012
1 parent 54a4c63 commit 231a712b8bd902893b7e83a3a41b17034818bb4a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/stream.js
@@ -71,7 +71,7 @@ Stream.prototype.pipe = function(dest, options) {
if (didOnEnd) return;
didOnEnd = true;

if (typeof dest.destroy === 'function') dest.destroy();

// don't leave dangling pipes when there are errors.

0 comments on commit 231a712

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