Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.js')
-rw-r--r--src/node.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.js b/src/node.js
index 3aa84dae763..9d19e78d2f7 100644
--- a/src/node.js
+++ b/src/node.js
@@ -698,7 +698,7 @@
// not-reading state.
if (stdin._handle && stdin._handle.readStop) {
stdin._handle.reading = false;
- stdin._readableState.reading = false;
+ stdin.push('');
stdin._handle.readStop();
}
@@ -707,7 +707,7 @@
stdin.on('pause', function() {
if (!stdin._handle)
return;
- stdin._readableState.reading = false;
+ stdin.push('');
stdin._handle.reading = false;
stdin._handle.readStop();
});