Skip to content

Commit e7040e4

Browse files
committed
#204: fixed check fo restarting the executor
1 parent 9b8504f commit e7040e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/simplejavamail/mailer/internal/mailsender/MailSender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ the proxy bridge server (or connection pool in async mode) while a non-async ema
193193
smtpRequestsPhaser.register();
194194
if (async) {
195195
// start up thread pool if necessary
196-
if (executor == null || executor.isTerminated()) {
196+
if (executor == null || executor.isShutdown()) {
197197
executor = Executors.newFixedThreadPool(operationalConfig.getThreadPoolSize());
198198
}
199199
configureSessionWithTimeout(session, operationalConfig.getSessionTimeout());

0 commit comments

Comments
 (0)