diff options
Diffstat (limited to 'src/node.js')
-rw-r--r-- | src/node.js | 4 |
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(); }); |