Skip to content

Commit

Permalink
process: use public readableFlowing property
Browse files Browse the repository at this point in the history
PR-URL: #29502
Refs: #445
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
ckarande authored and zhangyongsheng committed Sep 14, 2019
1 parent 39eb894 commit ddd72ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/process/stdio.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function getMainThreadStdio() {
function onpause() {
if (!stdin._handle)
return;
if (stdin._handle.reading && !stdin._readableState.flowing) {
if (stdin._handle.reading && !stdin.readableFlowing) {
stdin._readableState.reading = false;
stdin._handle.reading = false;
stdin._handle.readStop();
Expand Down

0 comments on commit ddd72ec

Please sign in to comment.