mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 23:00:05 +00:00
IPC: Don't create an unnecessary port when using PushIpcInterface outside of a domain.
This commit is contained in:
parent
de2e5a0855
commit
67c43e9200
@ -118,10 +118,11 @@ public:
|
|||||||
if (context->IsDomain()) {
|
if (context->IsDomain()) {
|
||||||
context->AddDomainObject(std::move(iface));
|
context->AddDomainObject(std::move(iface));
|
||||||
} else {
|
} else {
|
||||||
auto port = iface->CreatePort();
|
auto sessions = Kernel::ServerSession::CreateSessionPair(iface->GetServiceName());
|
||||||
auto session = port->Connect();
|
auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions);
|
||||||
ASSERT(session.Succeeded());
|
auto client = std::get<Kernel::SharedPtr<Kernel::ClientSession>>(sessions);
|
||||||
context->AddMoveObject(std::move(session).Unwrap());
|
iface->ClientConnected(server);
|
||||||
|
context->AddMoveObject(std::move(client));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user