sm:: avoid excessive port recreation

This commit is contained in:
Liam 2022-10-30 22:22:14 -04:00
parent 2a4a371112
commit 710220601f
3 changed files with 24 additions and 18 deletions

View file

@ -79,6 +79,7 @@ private:
/// Map of registered services, retrieved using GetServicePort.
std::unordered_map<std::string, Kernel::SessionRequestHandlerPtr> registered_services;
std::unordered_map<std::string, Kernel::KPort*> service_ports;
/// Kernel context
Kernel::KernelCore& kernel;