mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Prevent crash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user