summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_session.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-10 20:03:54 +0100
committerGitHub <noreply@github.com>2022-11-10 20:03:54 +0100
commitea41c53ab1b1255814be4a36a625153f9a7854b2 (patch)
tree4e00bd6b118b16c8bd4901bd1cdd9b3bdf27cfd1 /src/core/hle/kernel/k_session.cpp
parentMerge pull request #9182 from liamwhite/services-are-processes (diff)
parentkernel/svc_types: refresh (diff)
downloadyuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar.gz
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar.bz2
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar.lz
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar.xz
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.tar.zst
yuzu-ea41c53ab1b1255814be4a36a625153f9a7854b2.zip
Diffstat (limited to 'src/core/hle/kernel/k_session.cpp')
-rw-r--r--src/core/hle/kernel/k_session.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_session.cpp b/src/core/hle/kernel/k_session.cpp
index 7a6534ac3..b6f6fe9d9 100644
--- a/src/core/hle/kernel/k_session.cpp
+++ b/src/core/hle/kernel/k_session.cpp
@@ -76,7 +76,7 @@ void KSession::OnClientClosed() {
void KSession::PostDestroy(uintptr_t arg) {
// Release the session count resource the owner process holds.
KProcess* owner = reinterpret_cast<KProcess*>(arg);
- owner->GetResourceLimit()->Release(LimitableResource::Sessions, 1);
+ owner->GetResourceLimit()->Release(LimitableResource::SessionCountMax, 1);
owner->Close();
}