diff options
Diffstat (limited to 'lib/cache.js')
-rw-r--r-- | lib/cache.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/cache.js b/lib/cache.js index 33df21720..acde8bbf7 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -1096,8 +1096,12 @@ function LockFile(path) { LockFile.prototype.unlock = function(cb) { var self = this - if (!this.locked) - return cb() + if (!this.locked) { + console.trace() + console.warn('LockFile.unlock() called twice for '+this.path) + if (cb) cb() + return + } lockFile.unlock(this.path, function(er) { self.locked = false |