Skip to content

Commit 90c9518

Browse files
Don't remove the node at destruction (#683)
1 parent b974848 commit 90c9518

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

gz_ros2_control/src/gz_ros2_control_plugin.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ GazeboSimROS2ControlPlugin::GazeboSimROS2ControlPlugin()
254254
//////////////////////////////////////////////////
255255
GazeboSimROS2ControlPlugin::~GazeboSimROS2ControlPlugin()
256256
{
257-
// Stop controller manager thread
258-
if (!this->dataPtr->controller_manager_) {
259-
return;
260-
}
261-
this->dataPtr->executor_->remove_node(this->dataPtr->controller_manager_);
262257
this->dataPtr->executor_->cancel();
263258
this->dataPtr->thread_executor_spin_.join();
264259
}

0 commit comments

Comments
 (0)