mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-06 03:33: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);
|
reportError(context, account, folder, ex);
|
||||||
|
|
||||||
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
|
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
|
||||||
|
if (message != null)
|
||||||
if (message != null &&
|
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true));
|
||||||
!(ex instanceof MessageRemovedException) &&
|
|
||||||
!(ex instanceof FolderClosedException) &&
|
|
||||||
!(ex instanceof IllegalStateException))
|
|
||||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
|
|
||||||
|
|
||||||
if (ex instanceof MessageRemovedException ||
|
if (ex instanceof MessageRemovedException ||
|
||||||
ex instanceof FolderNotFoundException ||
|
ex instanceof FolderNotFoundException ||
|
||||||
|
|
|
@ -307,8 +307,8 @@ public class Helper {
|
||||||
if (ex instanceof IllegalStateException)
|
if (ex instanceof IllegalStateException)
|
||||||
// sync when store disconnected
|
// sync when store disconnected
|
||||||
return null;
|
return null;
|
||||||
if (ex instanceof SSLException || ex.getCause() instanceof SSLException)
|
//if (ex instanceof SSLException || ex.getCause() instanceof SSLException)
|
||||||
return null;
|
// return null;
|
||||||
if (ex instanceof MailConnectException && ex.getCause() instanceof UnknownHostException)
|
if (ex instanceof MailConnectException && ex.getCause() instanceof UnknownHostException)
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue