VERY experimental Nintendo Switch 2 emulator
C++
hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.
bunnei2878df391c21
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cppindex b547a34631..7692d02e16 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& coLOG_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;}