Keep graph manager alive until destruction

This commit is contained in:
Antonio cuadros
2021-07-28 10:03:08 +02:00
parent b0d4f46f8a
commit a0ce74a157
2 changed files with 9 additions and 18 deletions
-7
View File
@@ -188,13 +188,6 @@ void Agent::run()
void Agent::stop()
{
xrce_dds_agent_instance_.stop();
for (auto & element : graph_manager_map_)
{
element.second.stop();
}
graph_manager_map_.clear();
}
graph_manager::GraphManager* Agent::find_or_create_graph_manager(eprosima::fastdds::dds::DomainId_t domain_id)