[Scheduler] Don't start thread during unit tests
This commit is contained in:
parent
e80eb6fb43
commit
c68ac46d10
@ -117,6 +117,8 @@ namespace Components
|
|||||||
|
|
||||||
Utils::Hook(0x4D697A, Scheduler::ShutdownStub, HOOK_CALL).install()->quick();
|
Utils::Hook(0x4D697A, Scheduler::ShutdownStub, HOOK_CALL).install()->quick();
|
||||||
|
|
||||||
|
if (!Loader::PerformUnitTests())
|
||||||
|
{
|
||||||
Scheduler::AsyncTerminate = false;
|
Scheduler::AsyncTerminate = false;
|
||||||
Scheduler::AsyncThread = std::thread([]()
|
Scheduler::AsyncThread = std::thread([]()
|
||||||
{
|
{
|
||||||
@ -132,6 +134,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Scheduler::~Scheduler()
|
Scheduler::~Scheduler()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user