Change CatchingExecutor:

* ignore cancellation exception
* remove assertion (Closes #2270)
This commit is contained in:
Armin Schrenk
2022-07-18 12:21:42 +02:00
parent cfc8c7bed7
commit f1c8e3d3f2

View File

@@ -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) {