Browse Source

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

nce_cpp
bunnei 5 years ago
parent
commit
5114c6f3ac
  1. 3
      src/core/hle/kernel/time_manager.cpp

3
src/core/hle/kernel/time_manager.cpp

@ -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…
Cancel
Save