Skip to content

Commit

Permalink
Add fix for early stream closure via pipeline (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: David White <[email protected]>
  • Loading branch information
MorningLightMountain713 and David White authored Apr 26, 2024
1 parent 8d561e6 commit c3ad7bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports.pack = function pack (cwd, opts) {
}

function onstat (err, filename, stat) {
if (pack.destroyed) return
if (err) return pack.destroy(err)
if (!filename) {
if (opts.finalize !== false) pack.finalize()
Expand Down

0 comments on commit c3ad7bc

Please sign in to comment.