Prevent HMCL from crashing when exiting
This commit is contained in:
@@ -258,8 +258,11 @@ public enum OperatingSystem {
|
|||||||
|
|
||||||
public static void forceGC() {
|
public static void forceGC() {
|
||||||
System.gc();
|
System.gc();
|
||||||
System.runFinalization();
|
try {
|
||||||
System.gc();
|
System.runFinalization();
|
||||||
|
System.gc();
|
||||||
|
} catch (NoSuchMethodError ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Path getWorkingDirectory(String folder) {
|
public static Path getWorkingDirectory(String folder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user