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 Jun 30, 2021
commit 882f4122b9a3d71ebd6c08737a61f8f063124373
10 changes: 1 addition & 9 deletions lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,11 @@ async function pump(iterable, writable, finish) {
}

for await (const chunk of iterable) {
if (error) {
throw error;
}

if (!writable.write(chunk)) {
if (writable.write(chunk) === false) {
await wait();
}
}

if (error) {
throw error;
}

writable.end();

finish();
Expand Down