Revert "[FIX] Force exit JVM"

This reverts commit 4720e4d106.
This commit is contained in:
Gravita 2023-11-19 14:19:56 +07:00
parent 4720e4d106
commit 8f598a40c5

View file

@ -203,9 +203,6 @@ 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);
@ -248,7 +245,6 @@ 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;