From 49e30dcd3029de6dcef1548e487825c5487c2005 Mon Sep 17 00:00:00 2001 From: "Alexander.Kass" Date: Thu, 4 Jan 2024 12:28:41 +0200 Subject: [PATCH] do not log promise cancellation GitOrigin-RevId: a6c11f4d5f43491530a55cb2fb48812f2a4712d8 --- .../src/com/intellij/util/concurrency/Invoker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/util/concurrency/Invoker.java b/platform/platform-impl/src/com/intellij/util/concurrency/Invoker.java index 1cf1005bfd8e..1291090881bd 100644 --- a/platform/platform-impl/src/com/intellij/util/concurrency/Invoker.java +++ b/platform/platform-impl/src/com/intellij/util/concurrency/Invoker.java @@ -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; }