Skip to content

Commit 628537a

Browse files
GoesMgoes
authored andcommitted
earlier executor_thread_.reset() in nav2_costmap_ros (ros-navigation#4385)
* reorder cleanup_queue Signed-off-by: goes <[email protected]> * codestyle Signed-off-by: goes <[email protected]> * codestyle Signed-off-by: goes <[email protected]> --------- Signed-off-by: goes <[email protected]> Co-authored-by: goes <[email protected]> Signed-off-by: stevedanomodolor <[email protected]>
1 parent 7acfc84 commit 628537a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nav2_costmap_2d/src/costmap_2d_ros.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ nav2_util::CallbackReturn
354354
Costmap2DROS::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
355355
{
356356
RCLCPP_INFO(get_logger(), "Cleaning up");
357+
executor_thread_.reset();
357358

358359
costmap_publisher_.reset();
359360
clear_costmap_service_.reset();
@@ -368,8 +369,6 @@ Costmap2DROS::on_cleanup(const rclcpp_lifecycle::State & /*state*/)
368369
footprint_sub_.reset();
369370
footprint_pub_.reset();
370371

371-
372-
executor_thread_.reset();
373372
return nav2_util::CallbackReturn::SUCCESS;
374373
}
375374

0 commit comments

Comments
 (0)