summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2022-04-06 17:36:19 -0700
committerGravatar bunnei2022-04-08 14:11:39 -0700
commitf55fc850a245921cc2e89d281ff8bf81380f007b (patch)
treea0e76c77125e31c049a98cfc838bf878f18c9541
parentMerge pull request #8169 from merryhime/scoped_lock (diff)
downloadyuzu-f55fc850a245921cc2e89d281ff8bf81380f007b.tar.gz
yuzu-f55fc850a245921cc2e89d281ff8bf81380f007b.tar.xz
yuzu-f55fc850a245921cc2e89d281ff8bf81380f007b.zip
hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index b547a3463..7692d02e1 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -51,7 +51,7 @@ bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& co
51 LOG_CRITICAL(IPC, "object_id {} is too big!", object_id); 51 LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
52 return false; 52 return false;
53 } 53 }
54 return DomainHandler(object_id - 1).lock() != nullptr; 54 return !DomainHandler(object_id - 1).expired();
55 } else { 55 } else {
56 return session_handler != nullptr; 56 return session_handler != nullptr;
57 } 57 }