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:
4a32d53
)
streams2: Set readable=false on end
author
isaacs
<i@izs.me>
Wed, 5 Dec 2012 19:27:46 +0000
(11:27 -0800)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 18:52:27 +0000
(10:52 -0800)
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
3e9253a
..
ac21330
100644
(file)
--- a/
lib/_stream_readable.js
+++ b/
lib/_stream_readable.js
@@
-738,6
+738,7
@@
function endReadable(stream) {
state.ended = true;
state.endEmitted = true;
process.nextTick(function() {
+ stream.readable = false;
stream.emit('end');
});
}