From e878d1063190b5e36874bd5de915c2aa6f57efc0 Mon Sep 17 00:00:00 2001 From: Alexander Indenbaum Date: Tue, 16 Apr 2024 15:32:39 +0000 Subject: [PATCH] control/grpc.py: fix subsystem listeners state clean-up Signed-off-by: Alexander Indenbaum --- control/grpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/control/grpc.py b/control/grpc.py index bd2f3baa..d4a6c876 100644 --- a/control/grpc.py +++ b/control/grpc.py @@ -651,6 +651,8 @@ def delete_subsystem_safe(self, request, context): ) self.subsys_ha.pop(request.subsystem_nqn) self.subsys_max_ns.pop(request.subsystem_nqn) + if request.subsystem_nqn in self.subsystem_listeners: + self.subsystem_listeners.pop(request.subsystem_nqn) self.logger.debug(f"delete_subsystem {request.subsystem_nqn}: {ret}") except Exception as ex: self.logger.exception(delete_subsystem_error_prefix)