From 17f3f3219e42f0e4aa3aae791705299c09b853f0 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 5 Feb 2024 13:42:56 +0100 Subject: [PATCH] Shutdown Certificate Authority Manager before the stack When shutting down the Certificate Authority Manager, the underlying code needs the chip stack to properly free up all resources. Manually shutdown the Certificate Authority Manager to avoid exception later during shutdown. --- matter_server/server/stack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/matter_server/server/stack.py b/matter_server/server/stack.py index 7a356dd5..967736f7 100644 --- a/matter_server/server/stack.py +++ b/matter_server/server/stack.py @@ -70,4 +70,5 @@ def shutdown(self) -> None: """Stop/Shutdown Matter Stack.""" self.logger.info("Shutting down the Matter stack...") # NOTE that this will abruptly end the python process! + self.certificate_authority_manager.Shutdown() self._chip_stack.Shutdown()