daemon: fixed issue with session data collect transition not properly stopping config services

This commit is contained in:
Blake Harnden 2023-04-15 00:25:41 -07:00
parent 4a02d4bed9
commit fac8cfae08
2 changed files with 10 additions and 0 deletions

View file

@ -1082,6 +1082,7 @@ class Session:
if isinstance(node, CoreNodeBase) and node.up: if isinstance(node, CoreNodeBase) and node.up:
args = (node,) args = (node,)
funcs.append((self.services.stop_services, args, {})) funcs.append((self.services.stop_services, args, {}))
funcs.append((node.stop_config_services, (), {}))
utils.threadpool(funcs) utils.threadpool(funcs)
# shutdown emane # shutdown emane

View file

@ -506,6 +506,15 @@ class CoreNodeBase(NodeBase):
for service in startup_path: for service in startup_path:
service.start() service.start()
def stop_config_services(self) -> None:
"""
Stop all configuration services.
:return: nothing
"""
for service in self.config_services.values():
service.stop()
def makenodedir(self) -> None: def makenodedir(self) -> None:
""" """
Create the node directory. Create the node directory.