Fixed condition

This commit is contained in:
Luca Frosini 2022-11-11 12:01:04 +01:00
parent 1d2af818c2
commit fda1b553f6
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class ContextCache {
public void refreshContextsIfNeeded() throws ResourceRegistryException {
Calendar now = Calendar.getInstance();
if(now.after(expiringTime) || (contexts==null && contextCacheRenewal!=null)) {
if((now.after(expiringTime) || (contexts==null)) && contextCacheRenewal!=null) {
try {
List<Context> contexts = contextCacheRenewal.renew();
singleton.cleanCache(now);