mirror of https://github.com/M66B/FairEmail.git
Improved operation error handling
This commit is contained in:
parent
b6a9c6a972
commit
b0be5058f5
|
@ -1501,14 +1501,16 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
|
||||
if (ex instanceof MessageRemovedException ||
|
||||
ex instanceof FolderNotFoundException ||
|
||||
ex instanceof SendFailedException) {
|
||||
ex instanceof SendFailedException ||
|
||||
ex instanceof IllegalArgumentException) {
|
||||
Log.w("Unrecoverable", ex);
|
||||
|
||||
// There is no use in repeating
|
||||
db.operation().deleteOperation(op.id);
|
||||
|
||||
if (ex instanceof MessageRemovedException)
|
||||
db.message().deleteMessage(op.message);
|
||||
if (message != null &&
|
||||
ex instanceof MessageRemovedException)
|
||||
db.message().deleteMessage(message.id);
|
||||
|
||||
continue;
|
||||
} else if (ex instanceof MessagingException) {
|
||||
|
|
Loading…
Reference in New Issue