Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix a bug encountered on 0.10

  • Loading branch information...
commit 840e4a4396c28568eef91e028e2c9b33ceefa433 1 parent 1c2f961
@substack authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  index.js
  2. +1 −1  package.json
View
2  index.js
@@ -30,7 +30,7 @@ function Stream() {
// hack to remove the cleanup handler on 'end' from the core pipe() implementation
var fns = self.listeners('end');
var fn = fns[fns.length - 1];
- if (fn.name === 'cleanup') {
+ if (fn && fn.name === 'cleanup') {
self.removeListener('end', fn);
}
});
View
2  package.json
@@ -1,6 +1,6 @@
{
"name" : "duplex-pipe",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"description" : "a friendlier .pipe() for duplex streams that doesn't do cleanup on 'end'",
"main" : "index.js",
"dependencies" : {},
Please sign in to comment.
Something went wrong with that request. Please try again.