mirror of https://github.com/M66B/FairEmail.git
Suppress folder closed exception for operations
This commit is contained in:
parent
a956cb8733
commit
6a2191a35c
|
@ -214,9 +214,11 @@ class Core {
|
|||
Log.e(folder.name, ex);
|
||||
reportError(context, account, folder, ex);
|
||||
|
||||
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
|
||||
if (message != null)
|
||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true));
|
||||
if (!(ex instanceof FolderClosedException)) {
|
||||
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
|
||||
if (message != null)
|
||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true));
|
||||
}
|
||||
|
||||
if (ex instanceof MessageRemovedException ||
|
||||
ex instanceof FolderNotFoundException ||
|
||||
|
|
Loading…
Reference in New Issue