From 5284dfe17b24e8ea6e8fe0ec54ea7fec8d168d53 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 21 Aug 2024 01:51:13 +0200 Subject: [PATCH] Remove 1s thread sleep --- .../main/java/de/staropensource/sosengine/base/Engine.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/Engine.java b/base/src/main/java/de/staropensource/sosengine/base/Engine.java index e159e40..2a269e0 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/Engine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/Engine.java @@ -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 -> {