mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
b403f104e4
commit
40e19a242c
|
@ -414,14 +414,6 @@ class Core {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (op.tries >= TOTAL_RETRY_MAX) {
|
||||
// Giving up
|
||||
op.cleanup(context);
|
||||
db.operation().deleteOperation(op.id);
|
||||
ops.remove(op);
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
|
@ -436,7 +428,8 @@ class Core {
|
|||
db.endTransaction();
|
||||
}
|
||||
|
||||
if (ex instanceof OutOfMemoryError ||
|
||||
if (op.tries >= TOTAL_RETRY_MAX ||
|
||||
ex instanceof OutOfMemoryError ||
|
||||
ex instanceof MessageRemovedException ||
|
||||
ex instanceof MessageRemovedIOException ||
|
||||
ex instanceof FileNotFoundException ||
|
||||
|
|
Loading…
Reference in New Issue