[Minor] Send mails async

This commit is contained in:
Robert von Burg 2023-08-03 15:16:09 +02:00
parent 17fb2a1f43
commit 779a79631b
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class PlcPostInitializer extends SimplePostInitializer {
+ "\tYour Server.";
try {
getContainer().getComponent(MailHandler.class).sendMail(subject, body, recipients);
getContainer().getComponent(MailHandler.class).sendMailAsync(subject, body, recipients);
} catch (Exception e) {
logger.error("Notifying of server startup failed: " + ExceptionHelper.getRootCause(e), e);
}