Преглед изворни кода

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

Armin Schrenk пре 3 година
родитељ
комит
f1c8e3d3f2
1 измењених фајлова са 1 додато и 2 уклоњено
  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) {