From 384924335cbfd561a53b8ef059d896b0c9a25026 Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Mon, 22 Jan 2024 14:42:02 -0500 Subject: [PATCH] allnet: populate title registry when launching standalone --- core/allnet.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/allnet.py b/core/allnet.py index 4aea264..0cfacf5 100644 --- a/core/allnet.py +++ b/core/allnet.py @@ -94,6 +94,7 @@ class DLI_STATUS(Enum): return cls.UNKNOWN class AllnetServlet: + allnet_registry: Dict[str, Any] = {} def __init__(self, core_cfg: CoreConfig, cfg_folder: str): self.config = core_cfg self.config_folder = cfg_folder @@ -125,6 +126,8 @@ class AllnetServlet: def startup(self) -> None: self.logger.info(f"Ready on port {self.config.allnet.port if self.config.allnet.standalone else self.config.server.port}") + if not TitleServlet.title_registry: + TitleServlet(self.config, self.config_folder) async def handle_poweron(self, request: Request): request_ip = Utils.get_ip_addr(request)