Skip to content

Commit

Permalink
Add fix for early stream closure via pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
David White committed Feb 10, 2024
1 parent 8d561e6 commit b3ee2f6
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 b3ee2f6

Please sign in to comment.