diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-06 00:51:16 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-06 02:10:07 +0100 |
commit | 221613d4ead717dc788d0f391c22c31db5fe2530 (patch) | |
tree | 5a6c05e74ebfc0ff8b371904a9d1741b172d63b7 /src/core/hle/kernel/client_session.cpp | |
parent | kernel/client_session: Make data members private (diff) | |
download | yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.gz yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.bz2 yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.lz yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.xz yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.tar.zst yuzu-221613d4ead717dc788d0f391c22c31db5fe2530.zip |
Diffstat (limited to 'src/core/hle/kernel/client_session.cpp')
-rw-r--r-- | src/core/hle/kernel/client_session.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/core/hle/kernel/client_session.cpp b/src/core/hle/kernel/client_session.cpp index 704e82824..c17baa50a 100644 --- a/src/core/hle/kernel/client_session.cpp +++ b/src/core/hle/kernel/client_session.cpp @@ -17,21 +17,11 @@ ClientSession::~ClientSession() { // This destructor will be called automatically when the last ClientSession handle is closed by // the emulated application. - // Local references to ServerSession and SessionRequestHandler are necessary to guarantee they + // A local reference to the ServerSession is necessary to guarantee it // will be kept alive until after ClientDisconnected() returns. SharedPtr<ServerSession> server = parent->server; if (server) { - std::shared_ptr<SessionRequestHandler> hle_handler = server->hle_handler; - if (hle_handler) - hle_handler->ClientDisconnected(server); - - // 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; + server->ClientDisconnected(); } parent->client = nullptr; |