mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-06 11:39:49 +00:00
Prevent crash
This commit is contained in:
parent
29355f9ced
commit
44fb9d24cf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue