Skip to content

Commit 421e5c0

Browse files
committed
fix: create subscriber with new topic name
1 parent 06a508e commit 421e5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_topic_sub_node.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ template<class T> inline
303303
else if(topic_name_ != topic_name)
304304
{
305305
sub_instance_.reset();
306-
createSubscriber(topic_name_);
306+
createSubscriber(topic_name);
307307
}
308308

309309
auto CheckStatus = [](NodeStatus status)

0 commit comments

Comments
 (0)