diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-14 07:49:33 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-11-29 10:31:51 +0100 |
commit | c0870315fd89dfeabdbe5833d52e753a5d8417ea (patch) | |
tree | c9110312f0575b11bb717e022d6f3d25b1dedc1f /src | |
parent | hle: kernel: AddressArbiter: Remove unused code. (diff) | |
download | yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar.gz yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar.bz2 yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar.lz yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar.xz yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.tar.zst yuzu-c0870315fd89dfeabdbe5833d52e753a5d8417ea.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/time_manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/time_manager.cpp b/src/core/hle/kernel/time_manager.cpp index 95f2446c9..ea9089ff8 100644 --- a/src/core/hle/kernel/time_manager.cpp +++ b/src/core/hle/kernel/time_manager.cpp @@ -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(); + } }); } |