Fixes #108, Delay repository check by a few seconds if DB transaction is already in progress
This commit is contained in:
parent
9c7f33e21a
commit
1e8aa81c02
1 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue