From 449a6f1386002a38c34422098002e950928f706a Mon Sep 17 00:00:00 2001 From: burningtnt Date: Thu, 26 Jun 2025 19:40:28 +0800 Subject: [PATCH] Fix. --- .../main/java/org/jackhuang/hmcl/util/platform/SystemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/SystemUtils.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/SystemUtils.java index 8b28268cb..5f7faaf84 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/SystemUtils.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/platform/SystemUtils.java @@ -96,7 +96,7 @@ public final class SystemUtils { Lang.wrap(() -> convert.apply(inputStream)), Schedulers.io()); - if (SystemUtils.waitFor(process, 15, TimeUnit.SECONDS)) + if (!SystemUtils.waitFor(process, 15, TimeUnit.SECONDS)) throw new TimeoutException(); if (process.exitValue() != 0)