aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/client_session.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-06-25 20:14:04 -0500
committerSubv <subv2112@gmail.com>2017-06-25 23:38:29 -0500
commit44f4737f99fee92b3eb542b222c768580cf772c5 (patch)
treee36890c5a1ee1dcaeb49b3eeef572fc5b8443ace /src/core/hle/kernel/client_session.cpp
parent820509103c5bcb0013881d27818f3d3fc6a50f1d (diff)
Kernel/Sessions: Clean up the list of pending request threads of a session when the client endpoint is closed.
Diffstat (limited to 'src/core/hle/kernel/client_session.cpp')
-rw-r--r--src/core/hle/kernel/client_session.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/client_session.cpp b/src/core/hle/kernel/client_session.cpp
index 78a64d1055..e9cf057470 100644
--- a/src/core/hle/kernel/client_session.cpp
+++ b/src/core/hle/kernel/client_session.cpp
@@ -27,6 +27,11 @@ ClientSession::~ClientSession() {
// TODO(Subv): Force a wake up of all the ServerSession's waiting threads and set
// their WaitSynchronization result to 0xC920181A.
+
+ // Clean up the list of client threads with pending requests, they are unneeded now that the
+ // client endpoint is closed.
+ server->pending_requesting_threads.clear();
+ server->currently_handling = nullptr;
}
parent->client = nullptr;