|
@@ -81,6 +81,8 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
auto* port = Kernel::KPort::Create(kernel);
|
|
auto* port = Kernel::KPort::Create(kernel);
|
|
|
|
|
+ SCOPE_EXIT({ port->Close(); });
|
|
|
|
|
+
|
|
|
port->Initialize(ServerSessionCountMax, false, name);
|
|
port->Initialize(ServerSessionCountMax, false, name);
|
|
|
auto handler = it->second;
|
|
auto handler = it->second;
|
|
|
port->GetServerPort().SetSessionHandler(std::move(handler));
|
|
port->GetServerPort().SetSessionHandler(std::move(handler));
|