Skip to content

Commit 56f68f9

Browse files
authored
Fix destruction order in lifecycle benchmark (ros2#1675)
Signed-off-by: Scott K Logan <[email protected]>
1 parent 18fcd91 commit 56f68f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rclcpp_lifecycle/test/benchmark/benchmark_lifecycle_client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ class BenchmarkLifecycleClient : public performance_test_fixture::PerformanceTes
212212
performance_test_fixture::PerformanceTest::TearDown(state);
213213
executor->cancel();
214214
spinner_.join();
215-
lifecycle_node.reset();
215+
executor.reset();
216216
lifecycle_client.reset();
217+
lifecycle_node.reset();
217218
rclcpp::shutdown();
218219
}
219220

0 commit comments

Comments
 (0)