rmw_destroy_node must remove node from graph cache (#252)
Signed-off-by: Erik Boasson <eb@ilities.com> Co-authored-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
e0bfe46474
commit
6f9a61474f
1 changed files with 1 additions and 1 deletions
|
@ -1266,7 +1266,7 @@ extern "C" rmw_ret_t rmw_destroy_node(rmw_node_t * node)
|
|||
auto common = &node->context->impl->common;
|
||||
std::lock_guard<std::mutex> guard(common->node_update_mutex);
|
||||
rmw_dds_common::msg::ParticipantEntitiesInfo participant_msg =
|
||||
common->graph_cache.add_node(common->gid, node->name, node->namespace_);
|
||||
common->graph_cache.remove_node(common->gid, node->name, node->namespace_);
|
||||
result_ret = rmw_publish(
|
||||
common->pub, static_cast<void *>(&participant_msg), nullptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue