mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
parent
0b72572711
commit
8367fc43d5
@ -453,12 +453,16 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
|
||||
private void enableFeatureIfNeeded() {
|
||||
if (toggle.compareAndSet(false, true) || initialState.compareAndSet(true, false)) {
|
||||
listener.onEnabled();
|
||||
// needed as toggle may not be set
|
||||
toggle.set(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void disableFeatureIfNeeded() {
|
||||
if (toggle.compareAndSet(true, false) || initialState.compareAndSet(true, false)) {
|
||||
listener.onDisabled();
|
||||
// needed as toggle may not be set
|
||||
toggle.set(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user