diff --git a/lib/internal/streams/pipeline.js b/lib/internal/streams/pipeline.js index e3435f734be051..623973ff316453 100644 --- a/lib/internal/streams/pipeline.js +++ b/lib/internal/streams/pipeline.js @@ -194,7 +194,7 @@ function pipelineImpl(streams, callback, opts) { ac.abort(); if (final) { - callback(error, value); + process.nextTick(callback, error, value); } }