mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 23:25:46 +00:00
hle: kernel: Track and release server sessions, and protect methods with locks.
This commit is contained in:
parent
179243473b
commit
beeed68944
4 changed files with 82 additions and 13 deletions
|
@ -58,6 +58,9 @@ bool SessionRequestManager::HasSessionRequestHandler(const HLERequestContext& co
|
|||
|
||||
void SessionRequestHandler::ClientConnected(KServerSession* session) {
|
||||
session->ClientConnected(shared_from_this());
|
||||
|
||||
// Ensure our server session is tracked globally.
|
||||
kernel.RegisterServerSession(session);
|
||||
}
|
||||
|
||||
void SessionRequestHandler::ClientDisconnected(KServerSession* session) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue