16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

Merge pull request #32 from MaSzyna-EU07/fix-experimental

Fix experimental
This commit is contained in:
2025-11-16 23:53:53 +01:00
committed by GitHub

View File

@@ -581,8 +581,19 @@ eu07_application::run() {
} }
} }
Global.applicationQuitOrder = true; Global.applicationQuitOrder = true;
Global.threads["DiscordRPC"].join(); // wait for DiscordRPC thread to finish auto it = Global.threads.find("LogService");
Global.threads["LogService"].join(); // wait for logging thread to finish if (it != Global.threads.end())
{
if (it->second.joinable())
it->second.join();
}
it = Global.threads.find("DiscordRPC");
if (it != Global.threads.end())
{
if (it->second.joinable())
it->second.join();
}
return 0; return 0;
} }