diff --git a/rclcpp/src/rclcpp/executor.cpp b/rclcpp/src/rclcpp/executor.cpp index 48ac9c9..5e0f290 100644 --- a/rclcpp/src/rclcpp/executor.cpp +++ b/rclcpp/src/rclcpp/executor.cpp @@ -118,7 +118,6 @@ Executor::spin_some() while ((any_exec = get_next_executable(std::chrono::milliseconds::zero())) && spinning.load()) { execute_any_executable(any_exec); } - spinning.store(false); } void @@ -132,7 +131,6 @@ Executor::spin_once(std::chrono::nanoseconds timeout) if (any_exec) { execute_any_executable(any_exec); } - spinning.store(false); } void diff --git a/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp b/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp index e62dbcc..e7bcc63 100644 --- a/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp +++ b/rclcpp/src/rclcpp/executors/multi_threaded_executor.cpp @@ -55,7 +55,6 @@ MultiThreadedExecutor::spin() for (auto & thread : threads) { thread.join(); } - spinning.store(false); } size_t diff --git a/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp b/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp index 00ce809..87c25bd 100644 --- a/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp +++ b/rclcpp/src/rclcpp/executors/single_threaded_executor.cpp @@ -36,5 +36,4 @@ SingleThreadedExecutor::spin() auto any_exec = get_next_executable(); execute_any_executable(any_exec); } - spinning.store(false); }