streams2: Set readable=false on end
authorisaacs <i@izs.me>
Wed, 5 Dec 2012 19:27:46 +0000 (11:27 -0800)
committerisaacs <i@izs.me>
Fri, 14 Dec 2012 18:52:27 +0000 (10:52 -0800)
lib/_stream_readable.js

index 3e9253a..ac21330 100644 (file)
@@ -738,6 +738,7 @@ function endReadable(stream) {
   state.ended = true;
   state.endEmitted = true;
   process.nextTick(function() {
+    stream.readable = false;
     stream.emit('end');
   });
 }