1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-05 19:21:07 +00:00

Simplification

This commit is contained in:
M66B 2019-03-05 13:09:08 +00:00
parent 0c9ccef668
commit 9c0c37f0e1
2 changed files with 4 additions and 8 deletions

View file

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

View file

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