Skip to content

Commit

Permalink
Avoid shutdown timeout in case of exception on stop
Browse files Browse the repository at this point in the history
Closes gh-33442
  • Loading branch information
jhoeller committed Aug 31, 2024
1 parent 5d80d75 commit 1db9faf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ else if (bean instanceof SmartLifecycle) {
if (logger.isWarnEnabled()) {
logger.warn("Failed to stop bean '" + beanName + "'", ex);
}
if (bean instanceof SmartLifecycle) {
latch.countDown();
}
}
}
}
Expand Down

0 comments on commit 1db9faf

Please sign in to comment.