[Scheduler] Don't start thread during unit tests

This commit is contained in:
momo5502 2017-07-03 15:22:15 +02:00
parent e80eb6fb43
commit c68ac46d10

View File

@ -117,6 +117,8 @@ namespace Components
Utils::Hook(0x4D697A, Scheduler::ShutdownStub, HOOK_CALL).install()->quick();
if (!Loader::PerformUnitTests())
{
Scheduler::AsyncTerminate = false;
Scheduler::AsyncThread = std::thread([]()
{
@ -132,6 +134,7 @@ namespace Components
}
});
}
}
Scheduler::~Scheduler()
{