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
|
@ -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
|
// Get the last timestamp we got from the server
|
||||||
var lastUpdated = _getDBVersion('repository');
|
var lastUpdated = _getDBVersion('repository');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user