Browse Source

Change CatchingExecutor:
* ignore cancellation exception
* remove assertion (Closes #2270)

Armin Schrenk 2 years ago
parent
commit
f1c8e3d3f2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/org/cryptomator/common/CatchingExecutors.java

+ 1 - 2
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) {