summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-23 22:00:17 -0500
committerGravatar bunnei2018-01-24 22:24:16 -0500
commit7588b24f46b52c80018153a37fed214d9856f0f2 (patch)
tree60cc67727ba441d31730ce37d9e5b64987cad26a /src
parenthle: Rename RequestBuilder to ResponseBuilder. (diff)
downloadyuzu-7588b24f46b52c80018153a37fed214d9856f0f2.tar.gz
yuzu-7588b24f46b52c80018153a37fed214d9856f0f2.tar.xz
yuzu-7588b24f46b52c80018153a37fed214d9856f0f2.zip
server_session: Fix scenario where all domain handlers are closed.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/server_session.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp
index 7f215d0bb..54481f7f1 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -89,9 +89,9 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
89 } 89 }
90 90
91 LOG_CRITICAL(IPC, "Unknown domain command=%d", domain_message_header->command.Value()); 91 LOG_CRITICAL(IPC, "Unknown domain command=%d", domain_message_header->command.Value());
92 UNIMPLEMENTED(); 92 ASSERT(false);
93 } 93 }
94 return domain_request_handlers.front()->HandleSyncRequest(context); 94 // If there is no domain header, the regular session handler is used
95 } 95 }
96 96
97 // If this ServerSession has an associated HLE handler, forward the request to it. 97 // If this ServerSession has an associated HLE handler, forward the request to it.
@@ -117,7 +117,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
117 // end of the command such that only commands following this one are handled as domains 117 // end of the command such that only commands following this one are handled as domains
118 if (convert_to_domain) { 118 if (convert_to_domain) {
119 ASSERT_MSG(domain_request_handlers.empty(), "already a domain"); 119 ASSERT_MSG(domain_request_handlers.empty(), "already a domain");
120 domain_request_handlers.push_back(std::move(hle_handler)); 120 domain_request_handlers = {hle_handler};
121 convert_to_domain = false; 121 convert_to_domain = false;
122 } 122 }
123 123