Skip to content

Commit

Permalink
Bug fix on shutdown_on_sigint (not set on InitOptions constructors)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfneves committed Sep 10, 2019
1 parent b4629bf commit ae607ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rclcpp/src/rclcpp/init_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ InitOptions::InitOptions(const rcl_init_options_t & init_options)

InitOptions::InitOptions(const InitOptions & other)
: InitOptions(*other.get_rcl_init_options())
{}
{
shutdown_on_sigint = other.shutdown_on_sigint;
}

InitOptions &
InitOptions::operator=(const InitOptions & other)
Expand All @@ -53,6 +55,7 @@ InitOptions::operator=(const InitOptions & other)
if (RCL_RET_OK != ret) {
rclcpp::exceptions::throw_from_rcl_error(ret, "failed to copy rcl init options");
}
this->shutdown_on_sigint = other.shutdown_on_sigint;
}
return *this;
}
Expand Down

0 comments on commit ae607ec

Please sign in to comment.