Skip to content

Commit

Permalink
Fix wrong AnyExecutable use
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Jun 5, 2020
1 parent 9870930 commit 0f38c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ Executor::spin_some(std::chrono::nanoseconds max_duration)
}
RCLCPP_SCOPE_EXIT(this->spinning.store(false); );
bool work_available = false;
AnyExecutable any_exec;
while (rclcpp::ok(this->context_) && spinning.load() && max_duration_not_elapsed()) {
AnyExecutable any_exec;
if (!work_available) {
wait_for_work(std::chrono::milliseconds::zero());
}
Expand Down

0 comments on commit 0f38c51

Please sign in to comment.