Skip to content

Commit c3ad7bc

Browse files
MorningLightMountain713David White
and
David White
authored
Add fix for early stream closure via pipeline (#109)
Co-authored-by: David White <[email protected]>
1 parent 8d561e6 commit c3ad7bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exports.pack = function pack (cwd, opts) {
4444
}
4545

4646
function onstat (err, filename, stat) {
47+
if (pack.destroyed) return
4748
if (err) return pack.destroy(err)
4849
if (!filename) {
4950
if (opts.finalize !== false) pack.finalize()

0 commit comments

Comments
 (0)