Merge pull request #102 from ros2/opensplice_dynamic_ros_domain_id
always ensure that the ROS_DOMAIN_ID is set
This commit is contained in:
commit
d8b7ce8e13
1 changed files with 1 additions and 3 deletions
|
@ -71,12 +71,10 @@ Node::Node(
|
|||
throw std::runtime_error("failed to interpret ROS_DOMAIN_ID as integral number");
|
||||
}
|
||||
domain_id = static_cast<size_t>(number);
|
||||
}
|
||||
#ifdef _WIN32
|
||||
if (ros_domain_id) {
|
||||
free(ros_domain_id);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
auto node = rmw_create_node(name_.c_str(), domain_id);
|
||||
if (!node) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue