We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f407d7f commit 37482b0Copy full SHA for 37482b0
lib/internal/streams/pipeline.js
@@ -333,8 +333,17 @@ function pipe(src, dst) {
333
dst
334
.on('drain', pump);
335
336
+ function cleanup () {
337
+ src
338
+ .off('end', end)
339
+ .off('readable', pump);
340
+ dst
341
+ .off('drain', pump);
342
+ }
343
+
344
function end() {
345
dst.end();
346
+ cleanup();
347
}
348
349
const objectMode = (
0 commit comments