[Discovery]: Fix crash (#720)
This commit is contained in:
parent
0d96a0882b
commit
f34377b456
@ -30,6 +30,8 @@ namespace Components
|
|||||||
IsTerminating = false;
|
IsTerminating = false;
|
||||||
Thread = std::thread([]
|
Thread = std::thread([]
|
||||||
{
|
{
|
||||||
|
Com_InitThreadData();
|
||||||
|
|
||||||
while (!IsTerminating)
|
while (!IsTerminating)
|
||||||
{
|
{
|
||||||
if (IsPerforming)
|
if (IsPerforming)
|
||||||
@ -49,7 +51,7 @@ namespace Components
|
|||||||
IsPerforming = false;
|
IsPerforming = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::this_thread::sleep_for(50ms);
|
Game::Sys_Sleep(50);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user