From d7bb56e0b218c8d1cada0814a31bbacecfd5d4cd Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Fri, 14 Jul 2023 16:26:30 +0200 Subject: [PATCH] Fix CLIApplication shutdown hook --- .../src/main/java/fr/pandacube/lib/cli/CLIApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-cli/src/main/java/fr/pandacube/lib/cli/CLIApplication.java b/pandalib-cli/src/main/java/fr/pandacube/lib/cli/CLIApplication.java index 7670680..69f42d1 100644 --- a/pandalib-cli/src/main/java/fr/pandacube/lib/cli/CLIApplication.java +++ b/pandalib-cli/src/main/java/fr/pandacube/lib/cli/CLIApplication.java @@ -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