www

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

commit 1e8aa81c020db404966c19c06e909326edc83aea
parent 9c7f33e21a4480921f29e1b6436bc904adf0f924
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 11 Aug 2006 05:51:55 +0000

Fixes #108, Delay repository check by a few seconds if DB transaction is already in progress


Diffstat:
Mchrome/chromeFiles/content/scholar/xpcom/schema.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/xpcom/schema.js b/chrome/chromeFiles/content/scholar/xpcom/schema.js @@ -72,6 +72,13 @@ Scholar.Schema = new function(){ } } + // If transaction already in progress, delay by a few seconds + if (Scholar.DB.transactionInProgress()){ + Scholar.debug('Transaction in progress -- delaying repository check', 4) + _setRepositoryTimer(30); + return false; + } + // Get the last timestamp we got from the server var lastUpdated = _getDBVersion('repository');