Skip to content

Commit

Permalink
Merge pull request #56 from mauropasse/mauro/remove-use-previous-events
Browse files Browse the repository at this point in the history
Remove use_previous_event
  • Loading branch information
iRobot ROS authored Mar 24, 2021
2 parents 66974cf + 714f441 commit 5ecfad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rclcpp/src/rclcpp/qos_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ QOSEventHandlerBase::set_listener_callback(
rcl_ret_t ret = rcl_event_set_listener_callback(
&event_handle_,
callback,
user_data,
true /* Use previous events */);
user_data);

if (RCL_RET_OK != ret) {
throw std::runtime_error("Couldn't set listener callback to QOSEventHandlerBase");
Expand Down
3 changes: 1 addition & 2 deletions rclcpp/src/rclcpp/subscription_intra_process_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ SubscriptionIntraProcessBase::set_listener_callback(
rcl_ret_t ret = rcl_guard_condition_set_listener_callback(
&gc_,
callback,
user_data,
true /*Use previous events*/);
user_data);

if (RCL_RET_OK != ret) {
throw std::runtime_error("Couldn't set guard condition listener callback");
Expand Down

0 comments on commit 5ecfad0

Please sign in to comment.