* Improved connection performance on new release, no more empty cards on startup;

This commit is contained in:
Oleg Agafonov 2019-03-01 18:55:20 +04:00
parent 6846db75f4
commit f788af1f6a
4 changed files with 20 additions and 10 deletions

View file

@ -402,6 +402,9 @@ public class SessionImpl implements Session {
}
private void updateDatabase(boolean forceDBComparison, ServerState serverState) {
// download NEW cards/sets, but do not download data fixes (it's an old and rare feature from old clients, e.g. one client for different servers with different cards)
// use case: server gets new minor version with new cards, old client can get that cards too without donwload new version
// sets
long expansionDBVersion = ExpansionRepository.instance.getContentVersionFromDB();
if (forceDBComparison || serverState.getExpansionsContentVersion() > expansionDBVersion) {