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:
William Woodall 2015-09-17 14:20:13 -07:00
commit d8b7ce8e13

View file

@ -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) {