Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Revert "stream: emit 'pause' on nextTick"
This reverts commit ace1009.

The offending commit broke certain usages of piping from stdin.

Fixes: #5927
PR-URL: #5947
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
evanlucas committed Mar 29, 2016
commit 89abe8680864d982022d9488ce30a3182afa67ee
3 changes: 1 addition & 2 deletions lib/_stream_readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down