Skip to content

Commit

Permalink
/libros/node_handle: alternative way to fix #838 (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwecht authored and dirk-thomas committed Aug 4, 2020
1 parent e0c4677 commit 52c3a30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/roscpp/src/libros/node_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class NodeHandleBackingCollection
V_SrvCImpl srv_cs_;

boost::mutex mutex_;

// keep shared_ptrs to these managers to avoid assertions. Fixes #838
TopicManagerPtr keep_alive_topic_manager = TopicManager::instance();
ServiceManagerPtr keep_alive_service_manager = ServiceManager::instance();
};

NodeHandle::NodeHandle(const std::string& ns, const M_string& remappings)
Expand Down

0 comments on commit 52c3a30

Please sign in to comment.