From ec5c076a16e2f7b7b8cd2b4cd50837c029da202b Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 25 Feb 2020 16:35:33 +0700 Subject: [PATCH] [FIX] ExitEvent fix --- .../main/java/pro/gravit/launcher/client/ClientLauncher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java index db685b77..edd47cd2 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/ClientLauncher.java @@ -3,6 +3,7 @@ import pro.gravit.launcher.*; import pro.gravit.launcher.api.AuthService; import pro.gravit.launcher.api.ClientService; +import pro.gravit.launcher.api.SystemService; import pro.gravit.launcher.client.events.ClientLaunchPhase; import pro.gravit.launcher.client.events.ClientLauncherInitPhase; import pro.gravit.launcher.client.events.ClientLauncherPostInitPhase; @@ -300,7 +301,7 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl try { mainMethod.invokeWithArguments((Object) args.toArray(new String[0])); } finally { - Request.service.close(); + SystemService.exit(0); } }