From a50965fdb6f2948f8c045ed7da42512202d893ed Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Fri, 13 Sep 2019 11:29:59 +0200 Subject: [PATCH] Force program to end --- src/main/java/es/kauron/jstudy/Main.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/es/kauron/jstudy/Main.java b/src/main/java/es/kauron/jstudy/Main.java index ced64cf..b7570e0 100644 --- a/src/main/java/es/kauron/jstudy/Main.java +++ b/src/main/java/es/kauron/jstudy/Main.java @@ -20,6 +20,11 @@ public class Main extends Application { primaryStage.setOnHiding(event -> AppPrefs.save()); } + @Override + public void stop() throws Exception { + super.stop(); + System.exit(0); + } public static void main(String[] args) { launch(args);