3d569f1173
Before 3.4.2, `yield` in a Bluebird `coroutine()` released Zalgo if an already-resolved promise (e.g., from `Promise.resolve()`) was yielded, continuing immediately instead of on the next turn of the event loop. We apparently relied on that broken behavior in a few places, particularly from `Zotero.DB.waitForTransaction()`. All the transaction-queueing stuff probably needs to be reevaluated in general, but for now, mirror the previous possibly ill-advised behavior by checking explicitly for a transaction before yielding on `waitForTransaction()` (as well as the result of a 'load' event from `libraryTreeView`). |
||
---|---|---|
.. | ||
zotero | ||
zotero-platform |