Fix startup error on Windows DB upgrades caused by b2b751e0a0
This commit is contained in:
parent
b2b751e0a0
commit
fa680bbbf5
1 changed files with 11 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue