summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/kernel/k_thread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp
index f798dfd59..5cc0a0064 100644
--- a/src/core/hle/kernel/k_thread.cpp
+++ b/src/core/hle/kernel/k_thread.cpp
@@ -255,7 +255,7 @@ void KThread::PostDestroy(uintptr_t arg) {
255 const bool resource_limit_release_hint = (arg & 1); 255 const bool resource_limit_release_hint = (arg & 1);
256 const s64 hint_value = (resource_limit_release_hint ? 0 : 1); 256 const s64 hint_value = (resource_limit_release_hint ? 0 : 1);
257 if (owner != nullptr) { 257 if (owner != nullptr) {
258 owner->GetResourceLimit()->Release(Kernel::LimitableResource::Threads, 1, hint_value); 258 owner->GetResourceLimit()->Release(LimitableResource::Threads, 1, hint_value);
259 owner->Close(); 259 owner->Close();
260 } 260 }
261} 261}
@@ -289,7 +289,6 @@ void KThread::Finalize() {
289 // Decrement the parent process's thread count. 289 // Decrement the parent process's thread count.
290 if (parent != nullptr) { 290 if (parent != nullptr) {
291 parent->DecrementThreadCount(); 291 parent->DecrementThreadCount();
292 parent->GetResourceLimit()->Release(LimitableResource::Threads, 1);
293 } 292 }
294 293
295 // Perform inherited finalization. 294 // Perform inherited finalization.