Skip to content

Commit

Permalink
Use try_shutdown() instead of shutdown() in DirectNode.__exit__() (#683)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno authored Dec 30, 2021
1 parent 298764c commit 53fb882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2cli/ros2cli/node/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 53fb882

Please sign in to comment.