Skip to content

Commit 4d68da2

Browse files
committed
fixup
1 parent 0e0d5c9 commit 4d68da2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/internal/streams/pipeline.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,11 @@ function pipe (src, dst) {
348348
);
349349

350350
function pump () {
351-
while (!dst.writableNeedDrain) {
351+
if (dst.writableNeedDrain) {
352+
return;
353+
}
354+
355+
while (true) {
352356
const chunk = src.read((!objectMode && dst.writableHighwaterMark) || undefined);
353357
if (chunk === null || !dst.write(chunk)) {
354358
return;

0 commit comments

Comments
 (0)