[FIX] ExitEvent fix

This commit is contained in:
Gravit 2020-02-25 16:35:33 +07:00
parent 28b31d20f9
commit ec5c076a16
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -3,6 +3,7 @@
import pro.gravit.launcher.*; import pro.gravit.launcher.*;
import pro.gravit.launcher.api.AuthService; import pro.gravit.launcher.api.AuthService;
import pro.gravit.launcher.api.ClientService; 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.ClientLaunchPhase;
import pro.gravit.launcher.client.events.ClientLauncherInitPhase; import pro.gravit.launcher.client.events.ClientLauncherInitPhase;
import pro.gravit.launcher.client.events.ClientLauncherPostInitPhase; import pro.gravit.launcher.client.events.ClientLauncherPostInitPhase;
@ -300,7 +301,7 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl
try { try {
mainMethod.invokeWithArguments((Object) args.toArray(new String[0])); mainMethod.invokeWithArguments((Object) args.toArray(new String[0]));
} finally { } finally {
Request.service.close(); SystemService.exit(0);
} }
} }