diff options
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 0a2b474ee..f24b5c91a 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -226,19 +226,15 @@ static ResultCode ConnectToPort(Handle* out_handle, const char* port_name) { | |||
| 226 | 226 | ||
| 227 | auto client_port = it->second; | 227 | auto client_port = it->second; |
| 228 | 228 | ||
| 229 | // Connect to the port and retrieve the client endpoint of the connection Session. | ||
| 230 | SharedPtr<Kernel::ClientSession> client_session; | 229 | SharedPtr<Kernel::ClientSession> client_session; |
| 231 | CASCADE_RESULT(client_session, client_port->Connect()); | 230 | CASCADE_RESULT(client_session, client_port->Connect()); |
| 232 | 231 | ||
| 233 | // Note: Threads do not wait for the server endpoint to call | ||
| 234 | // AcceptSession before returning from this call. | ||
| 235 | |||
| 236 | // Return the client session | 232 | // Return the client session |
| 237 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(client_session)); | 233 | CASCADE_RESULT(*out_handle, Kernel::g_handle_table.Create(client_session)); |
| 238 | return RESULT_SUCCESS; | 234 | return RESULT_SUCCESS; |
| 239 | } | 235 | } |
| 240 | 236 | ||
| 241 | /// Synchronize to an OS service | 237 | /// Makes a blocking IPC call to an OS service. |
| 242 | static ResultCode SendSyncRequest(Handle handle) { | 238 | static ResultCode SendSyncRequest(Handle handle) { |
| 243 | SharedPtr<Kernel::ClientSession> session = Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); | 239 | SharedPtr<Kernel::ClientSession> session = Kernel::g_handle_table.Get<Kernel::ClientSession>(handle); |
| 244 | if (session == nullptr) { | 240 | if (session == nullptr) { |