Create method is now synchronized
This commit is contained in:
parent
6223baa29d
commit
ac00ea4599
|
@ -33,7 +33,7 @@ public class OrchestratorEventPublisherProviderFactory implements EventListenerP
|
|||
}
|
||||
|
||||
@Override
|
||||
public EventListenerProvider create(KeycloakSession keycloakSession) {
|
||||
public synchronized EventListenerProvider create(KeycloakSession keycloakSession) {
|
||||
logger.debugf("Getting configured endpoint address for client '%s' in realm '%s'", ORCHESTRATOR_CLIENT_ID,
|
||||
REALM_NAME);
|
||||
|
||||
|
@ -48,7 +48,8 @@ public class OrchestratorEventPublisherProviderFactory implements EventListenerP
|
|||
oepp = new OrchestratorEventPublisherProvider();
|
||||
}
|
||||
} catch (MalformedURLException e) {
|
||||
logger.error("Can't create new orchestrator event publisher provider with endpoint address: " + address, e);
|
||||
logger.error("Can't create new orchestrator event publisher provider with endpoint address: " + address,
|
||||
e);
|
||||
oepp = null;
|
||||
}
|
||||
return oepp;
|
||||
|
|
Loading…
Reference in New Issue