From 03ef4723f8d9bcc7631c87c6b54167f538e7824c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 14 Aug 2016 17:21:08 -0400 Subject: [PATCH] Fix delay-generator handling during upgrade check and full sync --- chrome/content/zotero/xpcom/sync/syncEngine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync/syncEngine.js b/chrome/content/zotero/xpcom/sync/syncEngine.js index 00b6bb073..92cd4a177 100644 --- a/chrome/content/zotero/xpcom/sync/syncEngine.js +++ b/chrome/content/zotero/xpcom/sync/syncEngine.js @@ -1210,7 +1210,7 @@ Zotero.Sync.Data.Engine.prototype._upgradeCheck = Zotero.Promise.coroutine(funct + allResults.libraryVersion + " != " + sinceResults.libraryVersion + " != " + lastLibraryVersion + ") -- waiting"); - let keepGoing = yield gen.next(); + let keepGoing = yield gen.next().value; if (!keepGoing) { throw new Error("Could not update " + this.library.name + " -- library in use"); } @@ -1336,7 +1336,7 @@ Zotero.Sync.Data.Engine.prototype._fullSync = Zotero.Promise.coroutine(function* Zotero.Sync.Data.conflictDelayIntervals, 60 * 60 * 1000 ); } - let keepGoing = yield gen.next(); + let keepGoing = yield gen.next().value; if (!keepGoing) { throw new Error("Could not update " + this.library.name + " -- library in use"); }