fix: stop_subsystems() missing some log messages

> related to #1
This commit is contained in:
[ ]
2025-05-27 23:30:45 +09:00
parent d72f4b780a
commit 0b6986e12c
+8 -5
View File
@@ -22,11 +22,6 @@ namespace launcher {
// (e.g., crashing, and then closing the window) // (e.g., crashing, and then closing the window)
// therefore, subsystems need to be guarded against multiple unload attempts // therefore, subsystems need to be guarded against multiple unload attempts
log_info("launcher", "stopping subsystems"); log_info("launcher", "stopping subsystems");
on_shutdown(); //_BUG: not thread safe, required?
on_shutdown = []() {};
// flush/stop logger
logger::stop();
// stop ea server // stop ea server
easrv_shutdown(); easrv_shutdown();
@@ -46,6 +41,14 @@ namespace launcher {
// unload nvapi and free library (if loaded) // unload nvapi and free library (if loaded)
nvapi::unload(); nvapi::unload();
// dynamic main cleanup _BUG: not thread safe, required?
on_shutdown();
on_shutdown = []() {};
// flush/stop logger
logger::stop();
} }
void kill(UINT exit_code) { void kill(UINT exit_code) {