Fix startup error on Windows DB upgrades caused by b2b751e0a0

This commit is contained in:
Dan Stillman 2017-02-26 06:12:45 -05:00
parent b2b751e0a0
commit fa680bbbf5

View file

@ -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) {