0
0
mirror of https://git.tardis.systems/mirrors/yuzu.git synced 2025-01-03 03:54:45 +00:00

hle: kernel: time_manager: Avoid a crash on process exit.

This commit is contained in:
bunnei 2020-11-13 22:49:33 -08:00
parent 9705f651b2
commit c0870315fd

View File

@ -24,7 +24,10 @@ TimeManager::TimeManager(Core::System& system_) : system{system_} {
return; return;
} }
auto thread = this->system.Kernel().RetrieveThreadFromGlobalHandleTable(proper_handle); auto thread = this->system.Kernel().RetrieveThreadFromGlobalHandleTable(proper_handle);
if (thread) {
// Thread can be null if process has exited
thread->OnWakeUp(); thread->OnWakeUp();
}
}); });
} }