From 7d87f2b444532f36690f3056770bd46f5ab21f0b Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Feb 2022 10:10:03 +0100 Subject: [PATCH] Skip retry when operation cancelled --- app/src/main/java/eu/faircode/email/Core.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index fbb6d4d4b4..a209e85eef 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -579,6 +579,7 @@ class Core { ex instanceof FolderNotFoundException || ex instanceof IllegalArgumentException || ex instanceof SQLiteConstraintException || + ex instanceof OperationCanceledException || (!ConnectionHelper.isIoError(ex) && (ex.getCause() instanceof BadCommandException || ex.getCause() instanceof CommandFailedException /* NO */) &&