mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Force exit JVM
This commit is contained in:
parent
0482cfa9ab
commit
4720e4d106
1 changed files with 4 additions and 0 deletions
|
@ -203,6 +203,9 @@ public void run(String... args) throws Throwable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
launch.launch(config.mainclass, config.mainmodule, Arrays.asList(real_args));
|
launch.launch(config.mainclass, config.mainmodule, Arrays.asList(real_args));
|
||||||
|
if(!config.keepJVMAfterMainMethodCompleted) {
|
||||||
|
System.exit(0);
|
||||||
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
|
@ -245,6 +248,7 @@ public static final class Config {
|
||||||
public String address;
|
public String address;
|
||||||
public String serverName;
|
public String serverName;
|
||||||
public boolean autoloadLibraries;
|
public boolean autoloadLibraries;
|
||||||
|
public boolean keepJVMAfterMainMethodCompleted;
|
||||||
public String logFile;
|
public String logFile;
|
||||||
public List<String> classpath;
|
public List<String> classpath;
|
||||||
public ClientProfile.ClassLoaderConfig classLoaderConfig;
|
public ClientProfile.ClassLoaderConfig classLoaderConfig;
|
||||||
|
|
Loading…
Reference in a new issue