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