Skip to content

Commit

Permalink
Fix startup error on Windows DB upgrades caused by b2b751e
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Feb 26, 2017
1 parent b2b751e commit fa680bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chrome/content/zotero/xpcom/db.js
Expand Up @@ -1064,6 +1064,17 @@ Zotero.DBConnection.prototype.backupDatabase = Zotero.Promise.coroutine(function
}
return false;
}
finally {
if (connection) {
let deferred = Zotero.Promise.defer();
connection.asyncClose({
complete: function () {
deferred.resolve();
}
});
yield deferred.promise;
}
}

// Special backup
if (!suffix && numBackups > 1) {
Expand Down

0 comments on commit fa680bb

Please sign in to comment.