aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_server_session.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-09 22:53:25 -0700
committerGitHub <noreply@github.com>2021-06-09 22:53:25 -0700
commit74f0087bfa673a530d88231b64c73acc3861fce9 (patch)
tree2e810f84e6d0f3ae62444ee3ba62cb91a48e5cfd /src/core/hle/kernel/k_server_session.h
parent86d832ab9a2896cd6a1ce7231645893390824985 (diff)
parentb259e95c09f231571c6a1c66046ff859019b1733 (diff)
Merge pull request #6441 from bunnei/fix-session-handler
hle: kernel: KServerSession: Fix client disconnected.
Diffstat (limited to 'src/core/hle/kernel/k_server_session.h')
-rw-r--r--src/core/hle/kernel/k_server_session.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/kernel/k_server_session.h b/src/core/hle/kernel/k_server_session.h
index 9efd400bc..d44bc9d4f 100644
--- a/src/core/hle/kernel/k_server_session.h
+++ b/src/core/hle/kernel/k_server_session.h
@@ -62,15 +62,14 @@ public:
void OnClientClosed();
- /**
- * Sets the HLE handler for the session. This handler will be called to service IPC requests
- * instead of the regular IPC machinery. (The regular IPC machinery is currently not
- * implemented.)
- */
- void SetSessionHandler(SessionRequestHandlerPtr handler) {
+ void ClientConnected(SessionRequestHandlerPtr handler) {
manager->SetSessionHandler(std::move(handler));
}
+ void ClientDisconnected() {
+ manager = nullptr;
+ }
+
/**
* Handle a sync request from the emulated application.
*