Fix delay-generator handling during upgrade check and full sync
This commit is contained in:
parent
976b5c82c6
commit
03ef4723f8
1 changed files with 2 additions and 2 deletions
|
@ -1210,7 +1210,7 @@ Zotero.Sync.Data.Engine.prototype._upgradeCheck = Zotero.Promise.coroutine(funct
|
||||||
+ allResults.libraryVersion + " != "
|
+ allResults.libraryVersion + " != "
|
||||||
+ sinceResults.libraryVersion + " != "
|
+ sinceResults.libraryVersion + " != "
|
||||||
+ lastLibraryVersion + ") -- waiting");
|
+ lastLibraryVersion + ") -- waiting");
|
||||||
let keepGoing = yield gen.next();
|
let keepGoing = yield gen.next().value;
|
||||||
if (!keepGoing) {
|
if (!keepGoing) {
|
||||||
throw new Error("Could not update " + this.library.name + " -- library in use");
|
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
|
Zotero.Sync.Data.conflictDelayIntervals, 60 * 60 * 1000
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let keepGoing = yield gen.next();
|
let keepGoing = yield gen.next().value;
|
||||||
if (!keepGoing) {
|
if (!keepGoing) {
|
||||||
throw new Error("Could not update " + this.library.name + " -- library in use");
|
throw new Error("Could not update " + this.library.name + " -- library in use");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue