www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit fa680bbbf5efa5e11941a81ef1b07dd15e034f59
parent b2b751e0a099fcb030d0ff25f37acf320fbf3b60
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 26 Feb 2017 06:12:45 -0500

Fix startup error on Windows DB upgrades caused by b2b751e0a0

Diffstat:
Mchrome/content/zotero/xpcom/db.js | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js @@ -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) {