diff options
author | Evan Lucas <evanlucas@me.com> | 2016-03-29 08:09:27 -0500 |
---|---|---|
committer | Evan Lucas <evanlucas@me.com> | 2016-03-29 10:21:46 -0500 |
commit | 89abe8680864d982022d9488ce30a3182afa67ee (patch) | |
tree | f252349da13cef1f9b94a9f45df0466f764a1ee7 /lib | |
parent | c7138e9ccaec5f376754b9ee53d086b33526b26c (diff) | |
download | android-node-v8-89abe8680864d982022d9488ce30a3182afa67ee.tar.gz android-node-v8-89abe8680864d982022d9488ce30a3182afa67ee.tar.bz2 android-node-v8-89abe8680864d982022d9488ce30a3182afa67ee.zip |
Revert "stream: emit 'pause' on nextTick"
This reverts commit ace1009456380251f75c7151236064d3a7476f5b.
The offending commit broke certain usages of piping from stdin.
Fixes: https://github.com/nodejs/node/issues/5927
PR-URL: https://github.com/nodejs/node/pull/5947
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_stream_readable.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 2ee59b4286..338bf2a753 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -738,8 +738,7 @@ Readable.prototype.pause = function() { if (false !== this._readableState.flowing) { debug('pause'); this._readableState.flowing = false; - // Emit 'pause' on next tick as we do for 'resume' - process.nextTick(() => this.emit('pause')); + this.emit('pause'); } return this; }; |