From 0045673e874af78e3dfd12cdc3c661de081fa2e0 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 15 Dec 2024 22:20:48 +0000 Subject: [PATCH] Destroy the client explicitely --- .../controller_manager/controller_manager_services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller_manager/controller_manager/controller_manager_services.py b/controller_manager/controller_manager/controller_manager_services.py index bfe36fe3b7..b9eececa4f 100644 --- a/controller_manager/controller_manager/controller_manager_services.py +++ b/controller_manager/controller_manager/controller_manager_services.py @@ -117,7 +117,9 @@ def service_caller( f"{call_timeout}. (Attempt {attempt+1} of {max_attempts}.)" ) else: + node.destroy_client(cli) return future.result() + node.destroy_client(cli) raise RuntimeError( f"Could not successfully call service {fully_qualified_service_name} after {max_attempts} attempts." )