Skip to content

Commit

Permalink
Merge pull request #102 from ros2/opensplice_dynamic_ros_domain_id
Browse files Browse the repository at this point in the history
always ensure that the ROS_DOMAIN_ID is set
  • Loading branch information
wjwwood committed Sep 17, 2015
2 parents 6f07517 + 3eb44ed commit d8b7ce8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rclcpp/include/rclcpp/node_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8b7ce8

Please sign in to comment.