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