hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession.

- These are not managed elsewhere, and need to be tracked and closed on emulation shutdown.
This commit is contained in:
bunnei
2022-04-06 17:44:06 -07:00
parent b44a564792
commit a7f73d606f
6 changed files with 46 additions and 13 deletions

View File

@ -59,6 +59,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.RegisterServerObject(session);
}
void SessionRequestHandler::ClientDisconnected(KServerSession* session) {