Cancel add operation after two tries

This commit is contained in:
M66B
2022-09-30 12:03:14 +02:00
parent 82e7dc3b47
commit c6c5419a72

View File

@@ -616,8 +616,7 @@ class Core {
EntityOperation.BODY.equals(op.name)) ||
EntityOperation.ATTACHMENT.equals(op.name) ||
((op.tries >= LOCAL_RETRY_MAX || attachments > 0) &&
EntityOperation.ADD.equals(op.name) &&
EntityFolder.DRAFTS.equals(folder.type)) ||
EntityOperation.ADD.equals(op.name)) ||
(op.tries >= LOCAL_RETRY_MAX &&
EntityOperation.SYNC.equals(op.name) &&
(account.protocol == EntityAccount.TYPE_POP ||