Wait for log mutex to init

This commit is contained in:
2025-10-14 18:13:28 +02:00
parent af4edcc734
commit 761fda99eb

View File

@@ -79,6 +79,18 @@ std::mutex logMutex;
void LogService()
{
// prevent crash if mutex is not initialized
while (true)
{
try
{
logMutex.lock();
break;
}
catch (...) {}
}
logMutex.unlock();
while (!Global.applicationQuitOrder)
{
{