forked from ShuriZma/suyu
1
0
Fork 0

hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.

This commit is contained in:
bunnei 2022-04-06 17:36:19 -07:00
parent 04efd729d6
commit f55fc850a2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}