Skip to content
Closed
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
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
ronag committed Dec 18, 2020
commit fcc9351faa34e37c5938ae172092a8116a84db7c
2 changes: 1 addition & 1 deletion lib/internal/streams/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ Readable.prototype.unpipe = function(dest) {
return this;

state.pipes.splice(index, 1);
if (state.pipes.length === 0)
if (state.pipes.length === 0 && !state.ended)
this.pause();

dest.emit('unpipe', this, unpipeInfo);
Expand Down