Fix CLIApplication shutdown hook

This commit is contained in:
Marc Baloup 2023-07-14 16:26:30 +02:00
parent 9e7d89cf70
commit d7bb56e0b2

View File

@ -46,7 +46,7 @@ public abstract class CLIApplication {
new CommandAdmin();
new CommandStop();
Runtime.getRuntime().addShutdownHook(new Thread(this::end));
Runtime.getRuntime().addShutdownHook(new Thread(this::stop));
cli.start(); // actually starts the CLI thread