From d6c998a478cd7ca9329d5410f23a9d8a7b8e8d5e Mon Sep 17 00:00:00 2001 From: Chetan Karande Date: Sun, 8 Sep 2019 16:23:56 -0400 Subject: [PATCH] process: use public readableFlowing property PR-URL: https://github.com/nodejs/node/pull/29502 Refs: https://github.com/nodejs/node/issues/445 Reviewed-By: Benjamin Gruenbaum Reviewed-By: David Carlier Reviewed-By: Trivikram Kamat Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Yongsheng Zhang --- lib/internal/process/stdio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/stdio.js b/lib/internal/process/stdio.js index efed8dc8d91741..44882dba84f9ec 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -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();