Fix style (#229)
This commit is contained in:
parent
39f0a1b93f
commit
bf6394004c
2 changed files with 4 additions and 1 deletions
|
@ -78,7 +78,8 @@ Executor::~Executor()
|
|||
"[rclcpp::error] failed to destroy guard condition: %s\n", rcl_get_error_string_safe());
|
||||
}
|
||||
// Remove and release the sigint guard condition
|
||||
memory_strategy_->remove_guard_condition(rclcpp::utilities::get_sigint_guard_condition(&waitset_));
|
||||
memory_strategy_->remove_guard_condition(
|
||||
rclcpp::utilities::get_sigint_guard_condition(&waitset_));
|
||||
rclcpp::utilities::release_sigint_guard_condition(&waitset_);
|
||||
}
|
||||
|
||||
|
|
|
@ -201,9 +201,11 @@ rclcpp::utilities::release_sigint_guard_condition(rcl_wait_set_t * waitset)
|
|||
auto kv = g_sigint_guard_cond_handles.find(waitset);
|
||||
if (kv != g_sigint_guard_cond_handles.end()) {
|
||||
if (rcl_guard_condition_fini(&kv->second) != RCL_RET_OK) {
|
||||
// *INDENT-OFF* (prevent uncrustify from making unnecessary indents here)
|
||||
throw std::runtime_error(std::string(
|
||||
"Failed to destroy sigint guard condition: ") +
|
||||
rcl_get_error_string_safe());
|
||||
// *INDENT-ON*
|
||||
}
|
||||
g_sigint_guard_cond_handles.erase(kv);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue