diff --git a/src/node.js b/src/node.js index d47a129635e25c..e8d365ac17201f 100644 --- a/src/node.js +++ b/src/node.js @@ -724,7 +724,7 @@ // not-reading state. if (stdin._handle && stdin._handle.readStop) { stdin._handle.reading = false; - stdin.push(''); + stdin._readableState.reading = false; stdin._handle.readStop(); } @@ -733,7 +733,7 @@ stdin.on('pause', function() { if (!stdin._handle) return; - stdin.push(''); + stdin._readableState.reading = false; stdin._handle.reading = false; stdin._handle.readStop(); });