Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public ProviderEvaluation<Value> getObjectEvaluation(String key, Value defaultVa

@Override
public ProviderState getState() {
synchronized (state) {
synchronized (stateLock) {
return state;
}
}
Expand All @@ -141,7 +141,7 @@ public void initialize(EvaluationContext evaluationContext) throws Exception {
// If we are ready, then set the state. Don't return, because we still need to listen for future
// changes.
if (client.isInitialized()) {
state = ProviderState.READY;
setState(ProviderState.READY);
}

var completer = new CompletableFuture<Boolean>();
Expand All @@ -155,7 +155,7 @@ public void initialize(EvaluationContext evaluationContext) throws Exception {
handleDataSourceStatus(res, completer);
});

if(state == ProviderState.READY) {
if (getState() == ProviderState.READY) {
return;
}

Expand Down
Loading