diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index a75f3fa74cba22..e890da252116da 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -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();