[*] fix what was meant to be a warning before a crash. now return false
This commit is contained in:
parent
26f581736a
commit
fb1b016c87
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user