Fixed condition
This commit is contained in:
parent
1d2af818c2
commit
fda1b553f6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue