Always run exit timer

This commit is contained in:
crschnick 2023-12-05 19:06:17 +00:00
parent ce32613dd4
commit b061ab7a34

View file

@ -241,7 +241,7 @@ public abstract class OperationMode {
}
// Run a timer to always exit after some time in case we get stuck
if (inShutdownHook) {
if (!hasError) {
ThreadHelper.runAsync(() -> {
ThreadHelper.sleep(25000);
TrackEvent.info("Shutdown took too long. Halting ...");