Remove 1s thread sleep
This commit is contained in:
parent
8ea4594e6f
commit
5284dfe17b
1 changed files with 0 additions and 5 deletions
|
@ -165,11 +165,6 @@ public final class Engine extends SubsystemClass {
|
|||
.name("Engine shutdown thread")
|
||||
.group(getThreadGroup())
|
||||
.unstarted(() -> {
|
||||
// To avoid race condition or something
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException ignored) {}
|
||||
|
||||
// Check if already shutting down
|
||||
switch (state) {
|
||||
case UNKNOWN, SHUTDOWN, CRASHED -> {
|
||||
|
|
Loading…
Reference in a new issue