Simplification

pull/152/head
M66B 6 years ago
parent 0c9ccef668
commit 9c0c37f0e1

@ -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…
Cancel
Save