diff --git a/host/src/app.c b/host/src/app.c index c907c0ab..4f0ca54a 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -850,6 +850,12 @@ void app_shutdown(void) void app_quit(void) { + if (app.state == APP_STATE_SHUTDOWN) + { + DEBUG_INFO("Received second shutdown request, force quitting"); + exit(LG_HOST_EXIT_USER); + } + app.exitcode = LG_HOST_EXIT_USER; app_shutdown(); }