From f1c8e3d3f280849637192fad083a9a49bf547125 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 18 Jul 2022 12:21:42 +0200 Subject: [PATCH] Change CatchingExecutor: * ignore cancellation exception * remove assertion (Closes #2270) --- src/main/java/org/cryptomator/common/CatchingExecutors.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/cryptomator/common/CatchingExecutors.java b/src/main/java/org/cryptomator/common/CatchingExecutors.java index 900f81ec9..d212b2c31 100644 --- a/src/main/java/org/cryptomator/common/CatchingExecutors.java +++ b/src/main/java/org/cryptomator/common/CatchingExecutors.java @@ -77,11 +77,10 @@ public final class CatchingExecutors { } private static void afterExecuteFuture(Future future) { - assert future.isDone(); try { future.get(); } catch (CancellationException ce) { - callHandler(Thread.currentThread(), ce); + //Ignore } catch (ExecutionException ee) { callHandler(Thread.currentThread(), ee.getCause()); } catch (InterruptedException ie) {