diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-02 06:50:42 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-07-21 03:54:56 +0200 |
commit | 854c7a3c2826b769d9d41c79570c4dae57e0b3eb (patch) | |
tree | cf1c762ca93572136a44e63b572fe4db817ad212 /src | |
parent | hle: kernel: Ensure global handle table is finalized before closing. (diff) | |
download | yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar.gz yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar.bz2 yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar.lz yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar.xz yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.tar.zst yuzu-854c7a3c2826b769d9d41c79570c4dae57e0b3eb.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index b7f9eb5c1..2d5525839 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -91,6 +91,12 @@ struct KernelCore::Impl { } void Shutdown() { + if (current_process) { + current_process->Finalize(); + current_process->Close(); + current_process = nullptr; + } + process_list.clear(); // Ensures all service threads gracefully shutdown @@ -112,11 +118,6 @@ struct KernelCore::Impl { cores.clear(); - if (current_process) { - current_process->Close(); - current_process = nullptr; - } - global_handle_table->Finalize(); global_handle_table.reset(); |