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:
Haowei Wen
2024-12-30 20:14:04 +08:00
parent 7d12ef6b09
commit 78e15d130b
2 changed files with 20 additions and 2 deletions

View File

@@ -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;
}