mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-05 19:21:07 +00:00
Simplification
This commit is contained in:
parent
0c9ccef668
commit
9c0c37f0e1
2 changed files with 4 additions and 8 deletions
|
@ -216,12 +216,8 @@ class Core {
|
|||
reportError(context, account, folder, ex);
|
||||
|
||||
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
|
||||
|
||||
if (message != null &&
|
||||
!(ex instanceof MessageRemovedException) &&
|
||||
!(ex instanceof FolderClosedException) &&
|
||||
!(ex instanceof IllegalStateException))
|
||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
|
||||
if (message != null)
|
||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true));
|
||||
|
||||
if (ex instanceof MessageRemovedException ||
|
||||
ex instanceof FolderNotFoundException ||
|
||||
|
|
|
@ -307,8 +307,8 @@ public class Helper {
|
|||
if (ex instanceof IllegalStateException)
|
||||
// sync when store disconnected
|
||||
return null;
|
||||
if (ex instanceof SSLException || ex.getCause() instanceof SSLException)
|
||||
return null;
|
||||
//if (ex instanceof SSLException || ex.getCause() instanceof SSLException)
|
||||
// return null;
|
||||
if (ex instanceof MailConnectException && ex.getCause() instanceof UnknownHostException)
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue