Fix dead-lock

This commit is contained in:
Wojtek Figat
2021-03-31 15:42:10 +02:00
parent a2825eac87
commit df10d6560b

View File

@@ -225,7 +225,7 @@ bool Asset::WaitForLoaded(double timeoutInMilliseconds)
while (!Engine::ShouldExit())
{
// Try to execute content tasks
while (task->IsQueued())
while (task->IsQueued() && !Engine::ShouldExit())
{
// Pick this task from the queue
ContentLoadTask* tmp;