We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b8504f commit e7040e4Copy full SHA for e7040e4
src/main/java/org/simplejavamail/mailer/internal/mailsender/MailSender.java
@@ -193,7 +193,7 @@ the proxy bridge server (or connection pool in async mode) while a non-async ema
193
smtpRequestsPhaser.register();
194
if (async) {
195
// start up thread pool if necessary
196
- if (executor == null || executor.isTerminated()) {
+ if (executor == null || executor.isShutdown()) {
197
executor = Executors.newFixedThreadPool(operationalConfig.getThreadPoolSize());
198
}
199
configureSessionWithTimeout(session, operationalConfig.getSessionTimeout());
0 commit comments