mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-23 02:55:44 +01:00
hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.
This commit is contained in:
parent
04efd729d6
commit
f55fc850a2
@ -51,7 +51,7 @@ bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& co
|
|||||||
LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
|
LOG_CRITICAL(IPC, "object_id {} is too big!", object_id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return DomainHandler(object_id - 1).lock() != nullptr;
|
return !DomainHandler(object_id - 1).expired();
|
||||||
} else {
|
} else {
|
||||||
return session_handler != nullptr;
|
return session_handler != nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user