Skip to content

Commit

Permalink
Fix checkstyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtnt committed Dec 31, 2023
1 parent 79af530 commit 494099e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions HMCLCore/src/main/java/org/jackhuang/hmcl/task/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import java.util.concurrent.Callable;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.locks.LockSupport;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
import java.util.function.Supplier;
Expand Down Expand Up @@ -1147,7 +1146,6 @@ public void execute() throws InterruptedException {
while (!done.getAsBoolean()) {
updateProgressImmediately(-k / ((System.currentTimeMillis() - start) / 1000D + k2) + MAX_VALUE);

Thread.yield();
Thread.sleep(1000);
}
}
Expand Down

0 comments on commit 494099e

Please sign in to comment.