projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd2834
)
stream: don't call `cleanup` twice on `end` and `close`
author
Maciej Małecki
<maciej.malecki@notimplemented.org>
Sun, 27 May 2012 21:29:00 +0000
(23:29 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Sun, 27 May 2012 23:35:36 +0000
(
01:35
+0200)
lib/stream.js
patch
|
blob
|
history
diff --git
a/lib/stream.js
b/lib/stream.js
index d6da2525f955ba2b029e98b79978c88f7ab67ec5..600416396f0d831de9099ce6bdef102c9e7e59bd 100644
(file)
--- 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();
}