diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPage.java index 998e3b5263..3ecb866f16 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModListPage.java @@ -43,6 +43,7 @@ import java.io.UncheckedIOException; import java.nio.file.Path; import java.util.*; +import java.util.concurrent.CancellationException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.locks.ReentrantLock; @@ -244,6 +245,7 @@ public void checkUpdates(Collection mods) { return null; }) .whenComplete(Schedulers.javafx(), (result, exception) -> { + if (exception instanceof CancellationException) return; if (exception != null || result == null) { Controllers.dialog(i18n("mods.check_updates.failed_check"), i18n("message.failed"), MessageDialogPane.MessageType.ERROR); } else if (result.isEmpty()) {