Create method is now synchronized

This commit is contained in:
Mauro Mugnaini 2020-07-27 11:37:47 +02:00
parent 6223baa29d
commit ac00ea4599
1 changed files with 3 additions and 2 deletions

View File

@ -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;