summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2021-10-26 12:12:13 +0200
committerFeng Chen <vonchenplus@gmail.com>2021-10-27 03:06:30 +0200
commitdd29285e356838b2326f1d2261f0a97eeded713e (patch)
tree4f71c3446f4164ec06beae0f7fed23e0b022ddc2 /src/core/hle/kernel/kernel.cpp
parentRevert PR7009 (diff)
downloadyuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar.gz
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar.bz2
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar.lz
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar.xz
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.tar.zst
yuzu-dd29285e356838b2326f1d2261f0a97eeded713e.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index db9f55864..4a139c5e7 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -91,12 +91,6 @@ struct KernelCore::Impl {
}
void Shutdown() {
- // Shutdown all processes.
- if (current_process) {
- current_process->Finalize();
- current_process->Close();
- current_process = nullptr;
- }
process_list.clear();
// Close all open server ports.
@@ -181,6 +175,13 @@ struct KernelCore::Impl {
}
}
+ // Shutdown all processes.
+ if (current_process) {
+ current_process->Finalize();
+ current_process->Close();
+ current_process = nullptr;
+ }
+
// Track kernel objects that were not freed on shutdown
{
std::lock_guard lk(registered_objects_lock);