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 BethGriggs committed Oct 17, 2019
1 parent f1a5a36 commit d6c998a
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 @@ -132,7 +132,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 d6c998a

Please sign in to comment.