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)