mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
stream: simplify src._readableState to state
PR-URL: https://github.com/nodejs/node/pull/18264 Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
6f3fb46541
commit
bf523822ba
1 file changed
+2
-2
@@ -645,8 +645,8 @@ Readable.prototype.pipe = function(dest, pipeOpts) {
|
||||
if (((state.pipesCount === 1 && state.pipes === dest) ||
|
||||
(state.pipesCount > 1 && state.pipes.indexOf(dest) !== -1)) &&
|
||||
!cleanedUp) {
|
||||
debug('false write response, pause', src._readableState.awaitDrain);
|
||||
src._readableState.awaitDrain++;
|
||||
debug('false write response, pause', state.awaitDrain);
|
||||
state.awaitDrain++;
|
||||
increasedAwaitDrain = true;
|
||||
}
|
||||
src.pause();
|
||||
|
||||
Reference in new issue
Block a user