From 914ea81c63df804615f64465ae970110c3074c3a Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Fri, 3 Jan 2020 09:55:11 -0300 Subject: [PATCH] Clear sub contexts when starting another init-shutdown cycle (#947) Signed-off-by: Ivan Santiago Paunovic --- rclcpp/src/rclcpp/context.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rclcpp/src/rclcpp/context.cpp b/rclcpp/src/rclcpp/context.cpp index fe92cfe..8777e5f 100644 --- a/rclcpp/src/rclcpp/context.cpp +++ b/rclcpp/src/rclcpp/context.cpp @@ -311,6 +311,7 @@ Context::clean_up() { shutdown_reason_ = ""; rcl_context_.reset(); + sub_contexts_.clear(); } std::vector