mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(lifecycle): exit when startup is interrupted (#4420)
The InterruptedException branch in onHttpStart restored the interrupt flag and logged, but never called Quarkus.asyncExit() like the other startup failure branch does. An interrupted startup hook left the process half-started instead of exiting.
This commit is contained in:
1 parent
444e9e8d6a
commit
26eafba246
2 files changed
+26
No files matched your search
@@ -284,6 +284,7 @@ public class EmulatorLifecycle {
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
LOG.error("Startup hook execution interrupted — shutting down", e);
|
||||
Quarkus.asyncExit();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Startup hook execution failed — shutting down", e);
|
||||
Quarkus.asyncExit();
|
||||
|
||||
Reference in new issue
Block a user