Update memory status every 1s, fix #3440
This commit also fixes Lang.getTimer() returns a non-daemon Timer, preventing Java from exiting after closing the launcher.
This commit is contained in:
@@ -389,7 +389,7 @@ public final class Lang {
|
||||
|
||||
public static synchronized Timer getTimer() {
|
||||
if (timer == null) {
|
||||
timer = new Timer();
|
||||
timer = new Timer(true);
|
||||
}
|
||||
return timer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user