Skip to content

Commit 33d04f0

Browse files
committed
Merge branch '1.5.x'
2 parents dd5091f + 616d11c commit 33d04f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public void onApplicationEvent(SpringApplicationEvent event) {
5858
performPreinitialization();
5959
}
6060
}
61-
if (event instanceof ApplicationReadyEvent
62-
|| event instanceof ApplicationFailedEvent) {
61+
if ((event instanceof ApplicationReadyEvent
62+
|| event instanceof ApplicationFailedEvent)
63+
&& preinitializationStarted.get()) {
6364
try {
6465
preinitializationComplete.await();
6566
}

0 commit comments

Comments
 (0)