mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 13:59:19 +02:00
Subthreads fix for asynchronous logging and discord threads
This commit is contained in:
@@ -55,7 +55,6 @@ http://mozilla.org/MPL/2.0/.
|
|||||||
|
|
||||||
eu07_application Application;
|
eu07_application Application;
|
||||||
screenshot_manager screenshot_man;
|
screenshot_manager screenshot_man;
|
||||||
|
|
||||||
ui_layer uilayerstaticinitializer;
|
ui_layer uilayerstaticinitializer;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@@ -581,6 +580,9 @@ eu07_application::run() {
|
|||||||
std::this_thread::sleep_for( Global.minframetime - frametime );
|
std::this_thread::sleep_for( Global.minframetime - frametime );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Global.applicationQuitOrder = true;
|
||||||
|
Global.threads["DiscordRPC"].join(); // wait for DiscordRPC thread to finish
|
||||||
|
Global.threads["LogService"].join(); // wait for logging thread to finish
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user