Skip to content

Commit

Permalink
Merge pull request #327 from Medium/nicks/close
Browse files Browse the repository at this point in the history
Use writeStream 'finish' event instead of 'close'
  • Loading branch information
jprichardson authored Dec 26, 2016
2 parents 5f319b6 + 543112b commit 0527b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/copy/ncp.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function ncp (source, dest, options, callback) {
})
}

writeStream.once('finish', function () {
writeStream.once('close', function () {
fs.chmod(target, file.mode, function (err) {
if (err) return onError(err)
if (preserveTimestamps) {
Expand Down

0 comments on commit 0527b39

Please sign in to comment.