From eae2f2bedcc6c611c2eb80e0995074549e9bd3e5 Mon Sep 17 00:00:00 2001 From: Scott Stamp Date: Sun, 14 Oct 2018 21:07:31 -0230 Subject: [PATCH] Fixed java process not exiting on Windows --- G-Earth-UI/src/main/java/gearth/Main.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/G-Earth-UI/src/main/java/gearth/Main.java b/G-Earth-UI/src/main/java/gearth/Main.java index 06c87c7..d12c66b 100644 --- a/G-Earth-UI/src/main/java/gearth/Main.java +++ b/G-Earth-UI/src/main/java/gearth/Main.java @@ -30,6 +30,9 @@ public class Main extends Application { primaryStage.setOnCloseRequest( event -> { companion.abort(); Platform.exit(); + + // Platform.exit doesn't seem to be enough on Windows? + System.exit(0); }); }