We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98fc7fe commit 41fedb7Copy full SHA for 41fedb7
rclcpp/src/rclcpp/time_source.cpp
@@ -261,9 +261,9 @@ void TimeSource::create_clock_sub()
261
clock_executor_ =
262
std::make_shared<rclcpp::executors::SingleThreadedExecutor>(exec_options);
263
if (!clock_executor_thread_.joinable()) {
264
+ cancel_clock_executor_promise_ = std::promise<void>{};
265
clock_executor_thread_ = std::thread(
266
[this]() {
- cancel_clock_executor_promise_ = std::promise<void>{};
267
auto future = cancel_clock_executor_promise_.get_future();
268
clock_executor_->add_callback_group(clock_callback_group_, node_base_);
269
clock_executor_->spin_until_future_complete(future);
0 commit comments