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; }