mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 14:57:41 -05:00
hle: kernel: time_manager: Avoid a crash on process exit.
This commit is contained in:
parent
9705f651b2
commit
c0870315fd
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue