We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82cb1f4 commit 2d4a356Copy full SHA for 2d4a356
1 file changed
rclcpp_action/src/server.cpp
@@ -160,7 +160,7 @@ ServerBase::ServerBase(
160
// This timer callback will be exchanged at the RCL layer
161
// with a _timer_ callback that will call the _event_ callback
162
// passed in by set_on_ready_callback.
163
- std::function<void()> timer_callback = [&] () {};
+ std::function<void()> timer_callback = [] () {};
164
pimpl_->expire_timer_ = std::make_shared<rclcpp::GenericTimer<decltype (timer_callback)>>(
165
node_clock->get_clock(), std::chrono::nanoseconds(options.result_timeout.nanoseconds),
166
std::move(timer_callback), node_base->get_context(), false);
0 commit comments