Permalink
Browse files

tar.js: Don't unlock locks we didn't lock

  • Loading branch information...
isaacs committed Feb 6, 2013
1 parent f71fb04 commit 87899ec660b5a7560a517cb7b22352cc7c2fc709
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/utils/tar.js
View
@@ -52,7 +52,7 @@ function pack_ (targetTarball, folder, pkg, cb_) {
})
}
lock(targetTarball, function (er) {
- if (er) return cb(er)
+ if (er) return cb_(er)
new Packer({ path: folder, type: "Directory", isDirectory: true })
.on("error", function (er) {
@@ -109,7 +109,7 @@ function unpack_ ( tarball, unpackTarget, dMode, fMode, uid, gid, cb_ ) {
}
lock(unpackTarget, function (er) {
- if (er) return cb(er)
+ if (er) return cb_(er)
rmGunz()
})

0 comments on commit 87899ec

Please sign in to comment.