Remove finalization of guard_condition from GraphListener::__shutdown() (#1401)

Signed-off-by: Stephen Brawner <brawner@gmail.com>
This commit is contained in:
brawner 2020-10-13 15:13:43 -07:00 committed by GitHub
parent cf1be86f5c
commit f71d3bfda2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,17 +371,6 @@ GraphListener::__shutdown(bool should_throw)
} else {
parent_context_ptr->release_interrupt_guard_condition(&wait_set_, std::nothrow);
}
} else {
ret = rcl_guard_condition_fini(shutdown_guard_condition_);
if (RCL_RET_OK != ret) {
if (should_throw) {
throw_from_rcl_error(ret, "failed to finalize shutdown guard condition");
} else {
RCLCPP_ERROR(
rclcpp::get_logger("rclcpp"),
"failed to finalize shutdown guard condition");
}
}
}
shutdown_guard_condition_ = nullptr;
}