Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 19, 2021
1 parent 2930afa commit 717390e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ function pipelineImpl(streams, callback, opts) {
const writing = i > 0;
const end = reading || opts?.end !== false;

if (isNodeStream(stream)) {
if (isNodeStream(stream) && end) {
finishCount++;
destroys.push(destroyer(stream, reading, end && writing, (err) => {
destroys.push(destroyer(stream, reading, writing, (err) => {
if (!err && !reading && isReadableFinished(stream, false)) {
stream.read(0);
destroyer(stream, true, writing, finish);
Expand Down

0 comments on commit 717390e

Please sign in to comment.