summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-14 07:49:33 +0100
committerbunnei <bunneidev@gmail.com>2020-11-29 10:31:51 +0100
commitc0870315fd89dfeabdbe5833d52e753a5d8417ea (patch)
treec9110312f0575b11bb717e022d6f3d25b1dedc1f /src/core
parenthle: kernel: AddressArbiter: Remove unused code. (diff)
downloadyuzu-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/core')
-rw-r--r--src/core/hle/kernel/time_manager.cpp5
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();
+ }
});
}