mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-23 16:25:37 +01:00
hle: kernel: time_manager: Avoid a crash on process exit.
This commit is contained in:
parent
9705f651b2
commit
c0870315fd
@ -24,7 +24,10 @@ TimeManager::TimeManager(Core::System& system_) : system{system_} {
|
||||
return;
|
||||
}
|
||||
auto thread = this->system.Kernel().RetrieveThreadFromGlobalHandleTable(proper_handle);
|
||||
thread->OnWakeUp();
|
||||
if (thread) {
|
||||
// Thread can be null if process has exited
|
||||
thread->OnWakeUp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user