Skip to content

Commit bcebcfb

Browse files
authored
Merge pull request #2 from irobot-ros/mauro/humble-gcc-8
Set spinning to false in ~EventsExecutor
2 parents 88c6c28 + a66ee25 commit bcebcfb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

irobot_events_executor/include/rclcpp/executors/events_executor/events_executor.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class EventsExecutor : public rclcpp::Executor
6262
bool execute_timers_separate_thread = false,
6363
const rclcpp::ExecutorOptions & options = rclcpp::ExecutorOptions());
6464

65-
/// Default destrcutor.
65+
/// Default destructor.
6666
RCLCPP_PUBLIC
67-
virtual ~EventsExecutor() = default;
67+
virtual ~EventsExecutor();
6868

6969
/// Events executor implementation of spin.
7070
/**

irobot_events_executor/src/rclcpp/executors/events_executor/events_executor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ EventsExecutor::EventsExecutor(
5050
entities_collector_->add_waitable(executor_notifier_);
5151
}
5252

53+
EventsExecutor::~EventsExecutor()
54+
{
55+
spinning.store(false);
56+
};
57+
5358
void
5459
EventsExecutor::spin()
5560
{

0 commit comments

Comments
 (0)