k_server_session: add SendReplyHLE

This commit is contained in:
Liam 2022-10-26 17:32:14 -04:00
parent 7837185f0a
commit 7aa91c8d9c
3 changed files with 6 additions and 5 deletions

View file

@ -55,6 +55,10 @@ public:
Result ReceiveRequest(std::shared_ptr<HLERequestContext>* out_context = nullptr,
std::weak_ptr<SessionRequestManager> manager = {});
Result SendReplyHLE() {
return SendReply(true);
}
private:
/// Frees up waiting client sessions when this server session is about to die
void CleanupRequests();

View file

@ -103,7 +103,7 @@ void ServiceThread::Impl::WaitAndProcessImpl() {
Result service_rc = manager->CompleteSyncRequest(server_session, *context);
// Reply to the client.
rc = server_session->SendReply(true);
rc = server_session->SendReplyHLE();
if (rc == ResultSessionClosed || service_rc == IPC::ERR_REMOTE_PROCESS_DEAD) {
SessionClosed(server_session, manager);