Skip to content

Commit

Permalink
control/grpc.py: fix subsystem listeners state clean-up
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum authored and baum committed Apr 17, 2024
1 parent b8ad850 commit e878d10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e878d10

Please sign in to comment.