From 0dca0d6f1c840c0bfa7054789f7c673410f8bb0e Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Thu, 30 Jun 2022 02:28:42 +0200 Subject: [PATCH] Fixed #2270 --- src/main/java/org/cryptomator/common/CatchingExecutors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cryptomator/common/CatchingExecutors.java b/src/main/java/org/cryptomator/common/CatchingExecutors.java index 900f81ec9..575b366b8 100644 --- a/src/main/java/org/cryptomator/common/CatchingExecutors.java +++ b/src/main/java/org/cryptomator/common/CatchingExecutors.java @@ -53,7 +53,7 @@ public final class CatchingExecutors { callHandler(Thread.currentThread(), throwable); } else if (runnable instanceof Task t) { afterExecuteTask(t); - } else if (runnable instanceof Future f) { + } else if (runnable instanceof Future f && f.isDone()) { afterExecuteFuture(f); } //Errors in this method are delegated to the UncaughtExceptionHandler of the current thread