do not log promise cancellation

GitOrigin-RevId: a6c11f4d5f43491530a55cb2fb48812f2a4712d8
This commit is contained in:
Alexander.Kass
2024-01-05 11:22:47 +00:00
committed by intellij-monorepo-bot
parent 7ce512fdeb
commit 49e30dcd30
@@ -216,7 +216,7 @@ public abstract class Invoker implements Disposable {
}
private void handleTaskError(@NotNull Task<?, ?> task, @NotNull Throwable throwable, int attempt) {
if (throwable instanceof ProcessCanceledException || throwable instanceof IndexNotReadyException) {
if (throwable instanceof ProcessCanceledException || throwable == AsyncPromise.CANCELED || throwable instanceof IndexNotReadyException) {
offerRestart(task, attempt);
return;
}