From 03a3468666bc290ac82f3b6884dd2604928797a9 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 61892165999d92..08781547c48952 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -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();