Remove 1s thread sleep
Some checks failed
build-and-test / build (push) Failing after 2m46s
build-and-test / generate-javadoc (push) Failing after 2m3s
build-and-test / test (push) Failing after 2m57s

This commit is contained in:
JeremyStar™ 2024-08-21 01:51:13 +02:00
parent 8ea4594e6f
commit 5284dfe17b
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -165,11 +165,6 @@ public final class Engine extends SubsystemClass {
.name("Engine shutdown thread") .name("Engine shutdown thread")
.group(getThreadGroup()) .group(getThreadGroup())
.unstarted(() -> { .unstarted(() -> {
// To avoid race condition or something
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {}
// Check if already shutting down // Check if already shutting down
switch (state) { switch (state) {
case UNKNOWN, SHUTDOWN, CRASHED -> { case UNKNOWN, SHUTDOWN, CRASHED -> {