From 034fa6b23d76969b55a565f7514d36b135f789d2 Mon Sep 17 00:00:00 2001 From: Giuseppe Baittiner Date: Tue, 12 Dec 2023 10:29:11 +0100 Subject: [PATCH] fix: sync lock --- .../sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java index 33fbebd..e97900a 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/rulesmanager/service/impl/ConfigSRV.java @@ -55,7 +55,7 @@ public void postConstruct() { public Boolean isControlLogPersistenceEnable() { long lastUpdate = props.get(PROPS_NAME_CONTROL_LOG_ENABLED).getKey(); if (new Date().getTime() - lastUpdate >= DELTA_MS) { - synchronized(ConfigSRV.class) { + synchronized(PROPS_NAME_CONTROL_LOG_ENABLED) { if (new Date().getTime() - lastUpdate >= DELTA_MS) { refresh(GENERIC, PROPS_NAME_CONTROL_LOG_ENABLED); }