[*] fix what was meant to be a warning before a crash. now return false

This commit is contained in:
Reece Wilson 2023-05-25 02:53:10 +01:00
parent 26f581736a
commit fb1b016c87

View File

@ -423,10 +423,11 @@ namespace Aurora::Async
// TODO: rewrite queues
bool ThreadPool::PollInternal(bool block, AuUInt32 &uCount)
{
auto state = GetThreadState();
auto state = GetThreadStateNoWarn();
if (!state)
{
SysPushErrorUninitialized("Not an async thread");
return false;
}
auto group = state->parent.lock();