Skip to content

Commit 89abe86

Browse files
committedMar 29, 2016
Revert "stream: emit 'pause' on nextTick"
This reverts commit ace1009. The offending commit broke certain usages of piping from stdin. Fixes: nodejs#5927 PR-URL: nodejs#5947 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent c7138e9 commit 89abe86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎lib/_stream_readable.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,7 @@ Readable.prototype.pause = function() {
738738
if (false !== this._readableState.flowing) {
739739
debug('pause');
740740
this._readableState.flowing = false;
741-
// Emit 'pause' on next tick as we do for 'resume'
742-
process.nextTick(() => this.emit('pause'));
741+
this.emit('pause');
743742
}
744743
return this;
745744
};

0 commit comments

Comments
 (0)
Please sign in to comment.