Skip to content
Snippets Groups Projects
Commit f55fc850 authored by bunnei's avatar bunnei
Browse files

hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is...

hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.
parent 04efd729
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment