Prevent crash

pull/162/head
M66B 6 years ago
parent 29355f9ced
commit 44fb9d24cf

@ -367,7 +367,7 @@ public class MailService implements AutoCloseable {
public void close() throws MessagingException {
try {
if (iservice != null)
if (iservice != null && iservice.isConnected())
iservice.close();
} finally {
context = null;

Loading…
Cancel
Save