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

This commit is contained in:
Dan Stillman 2006-08-11 05:51:55 +00:00
parent 9c7f33e21a
commit 1e8aa81c02

View file

@ -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');