1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-06 11:39:49 +00:00

Prevent crash

This commit is contained in:
M66B 2019-10-08 21:59:49 +02:00
parent 29355f9ced
commit 44fb9d24cf

View file

@ -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;