mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 08:31:07 +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));
|
||||
if(!config.keepJVMAfterMainMethodCompleted) {
|
||||
System.exit(0);
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
LogHelper.error(e);
|
||||
System.exit(-1);
|
||||
|
@ -245,6 +248,7 @@ public static final class Config {
|
|||
public String address;
|
||||
public String serverName;
|
||||
public boolean autoloadLibraries;
|
||||
public boolean keepJVMAfterMainMethodCompleted;
|
||||
public String logFile;
|
||||
public List<String> classpath;
|
||||
public ClientProfile.ClassLoaderConfig classLoaderConfig;
|
||||
|
|
Loading…
Reference in a new issue