diff --git a/spring-context/src/main/java/org/springframework/scheduling/concurrent/SimpleAsyncTaskScheduler.java b/spring-context/src/main/java/org/springframework/scheduling/concurrent/SimpleAsyncTaskScheduler.java index 6e9ccd8ada5e..f19724de79ee 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/concurrent/SimpleAsyncTaskScheduler.java +++ b/spring-context/src/main/java/org/springframework/scheduling/concurrent/SimpleAsyncTaskScheduler.java @@ -227,7 +227,7 @@ private void shutdownAwareErrorHandler(Throwable ex) { if (this.errorHandler != null) { this.errorHandler.handleError(ex); } - else if (this.scheduledExecutor.isTerminated()) { + else if (this.scheduledExecutor.isShutdown()) { LogFactory.getLog(getClass()).debug("Ignoring scheduled task exception after shutdown", ex); } else {