Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Evolveum/midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrixstar committed Aug 10, 2023
2 parents 3ed6dc7 + 9a7278f commit bba27e3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ public void setLog(Log log) {
this.log = log;
}

private void setupRepositoryViaMidPointHome(ConnectionOptions options) {
private synchronized void setupRepositoryViaMidPointHome(ConnectionOptions options) {
if (applicationContext != null) {
// Guard if method is entered multiple times during multi-threaded invocation
return;
}
if (applicationContextLevel == NinjaApplicationContextLevel.NONE) {
throw new IllegalStateException("Application context shouldn't be initialized");
}
Expand Down

0 comments on commit bba27e3

Please sign in to comment.