Fix CLIApplication shutdown hook
This commit is contained in:
parent
9e7d89cf70
commit
d7bb56e0b2
@ -46,7 +46,7 @@ public abstract class CLIApplication {
|
|||||||
new CommandAdmin();
|
new CommandAdmin();
|
||||||
new CommandStop();
|
new CommandStop();
|
||||||
|
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread(this::end));
|
Runtime.getRuntime().addShutdownHook(new Thread(this::stop));
|
||||||
|
|
||||||
cli.start(); // actually starts the CLI thread
|
cli.start(); // actually starts the CLI thread
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user