清理 OperatingSystem (#3925)

This commit is contained in:
Glavo
2025-05-20 19:03:48 +08:00
committed by GitHub
parent 0900ad3e5a
commit c5f56eb5c4
9 changed files with 12 additions and 30 deletions

View File

@@ -296,7 +296,7 @@ public final class Launcher extends Application {
Controllers.getStage().close();
Schedulers.shutdown();
Controllers.shutdown();
Lang.executeDelayed(OperatingSystem::forceGC, TimeUnit.SECONDS, 5, true);
Lang.executeDelayed(System::gc, TimeUnit.SECONDS, 5, true);
});
}