mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-23 22:33:06 +00:00
hle: kernel: Ensure current running process is closed.
This commit is contained in:
parent
ecf3653444
commit
854c7a3c28
1 changed files with 6 additions and 5 deletions
|
@ -91,6 +91,12 @@ struct KernelCore::Impl {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown() {
|
void Shutdown() {
|
||||||
|
if (current_process) {
|
||||||
|
current_process->Finalize();
|
||||||
|
current_process->Close();
|
||||||
|
current_process = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
process_list.clear();
|
process_list.clear();
|
||||||
|
|
||||||
// Ensures all service threads gracefully shutdown
|
// Ensures all service threads gracefully shutdown
|
||||||
|
@ -112,11 +118,6 @@ struct KernelCore::Impl {
|
||||||
|
|
||||||
cores.clear();
|
cores.clear();
|
||||||
|
|
||||||
if (current_process) {
|
|
||||||
current_process->Close();
|
|
||||||
current_process = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
global_handle_table->Finalize();
|
global_handle_table->Finalize();
|
||||||
global_handle_table.reset();
|
global_handle_table.reset();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue