From 53fb88201abd03d5329c1fe28bad00c4d7ef4f64 Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Thu, 30 Dec 2021 01:22:09 -0300 Subject: [PATCH] Use try_shutdown() instead of shutdown() in DirectNode.__exit__() (#683) Signed-off-by: Ivan Santiago Paunovic --- ros2cli/ros2cli/node/direct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2cli/ros2cli/node/direct.py b/ros2cli/ros2cli/node/direct.py index c426394c2..269e5aa82 100644 --- a/ros2cli/ros2cli/node/direct.py +++ b/ros2cli/ros2cli/node/direct.py @@ -84,7 +84,7 @@ def __getattr__(self, name): def __exit__(self, exc_type, exc_value, traceback): self.node.destroy_node() - rclpy.shutdown() + rclpy.try_shutdown() def add_arguments(parser):