Always reset updatePossiblyInProgress on leaving scope
@@ -46,12 +46,14 @@ public class ServiceModelCache implements Supplier<ServiceModel> {
updatePossiblyInProgress = true;
}
+ try {
takeSnapshot();
-
+ } finally {
synchronized (updateMonitor) {
updatePossiblyInProgress = false;
}
}
+ }
return snapshot;
}
