summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-06 17:36:19 -0700
committerbunnei <bunneidev@gmail.com>2022-04-08 14:11:39 -0700
commitf55fc850a245921cc2e89d281ff8bf81380f007b (patch)
treea0e76c77125e31c049a98cfc838bf878f18c9541 /src
parent04efd729d6b86b133d1ccacfcab77235e247f766 (diff)
hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.
Diffstat (limited to 'src')
-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
LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
return false;
}
- return DomainHandler(object_id - 1).lock() != nullptr;
+ return !DomainHandler(object_id - 1).expired();
} else {
return session_handler != nullptr;
}