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 e105f44 commit 478ec80Copy full SHA for 478ec80
hardware_interface/src/hardware_component_interface.cpp
@@ -50,7 +50,14 @@ HardwareComponentInterface::HardwareComponentInterface()
50
{
51
}
52
53
-HardwareComponentInterface::~HardwareComponentInterface() = default;
+HardwareComponentInterface::~HardwareComponentInterface()
54
+{
55
+ if (async_handler_)
56
+ {
57
+ async_handler_->stop_thread();
58
+ }
59
+ async_handler_.reset();
60
+}
61
62
CallbackReturn HardwareComponentInterface::init(
63
const hardware_interface::HardwareComponentParams & params)
0 commit comments