Skip to content

Commit 4ad9396

Browse files
committed
Update CountDownLatch for non-pauseable beans
See gh-35269
1 parent 61df497 commit 4ad9396

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ private void doStop(Map<String, ? extends Lifecycle> lifecycleBeans, final Strin
485485
}
486486
});
487487
}
488+
else {
489+
// Don't wait for beans that aren't pauseable...
490+
latch.countDown();
491+
}
488492
}
489493
else if (!pauseableOnly) {
490494
if (logger.isTraceEnabled()) {

0 commit comments

Comments
 (0)