Add "Dear friendly AMO reviewer" message to processNextEvent() call that is only used in Z standalone
This commit is contained in:
parent
b7482bc7d6
commit
606211afa7
1 changed files with 7 additions and 1 deletions
|
@ -685,6 +685,11 @@ if(appInfo.platformVersion[0] >= 2) {
|
|||
|
||||
var timeout = Date.now() + 5000; // 5 second timeout
|
||||
while(_waitingForDBLock && !Zotero.closing && Date.now() < timeout) {
|
||||
// Dear friendly AMO reviewer:
|
||||
//
|
||||
// The following processNextEvent() call is only used within Zotero
|
||||
// Standalone. It is never used when Zotero is running as a Firefox
|
||||
// extension.
|
||||
Zotero.mainThread.processNextEvent(true);
|
||||
}
|
||||
if(Zotero.closing) return false;
|
||||
|
@ -735,6 +740,7 @@ if(appInfo.platformVersion[0] >= 2) {
|
|||
*/
|
||||
function stateCheck() {
|
||||
if(!Zotero.isConnector && Zotero.DB.transactionInProgress()) {
|
||||
Zotero.logError("State check failed due to transaction in progress");
|
||||
this.initialized = false;
|
||||
this.skipLoading = true;
|
||||
return false;
|
||||
|
@ -1501,7 +1507,7 @@ if(appInfo.platformVersion[0] >= 2) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Pumps a generator until it yields false. See schema.js for an example.
|
||||
* Pumps a generator until it yields false. See itemTreeView.js for an example.
|
||||
*/
|
||||
this.pumpGenerator = function(generator, ms) {
|
||||
_waiting++;
|
||||
|
|
Loading…
Reference in a new issue