mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:23:34 +08:00
Subscriber: proper destruction, tests for that, tests for getFailureCount()
This commit is contained in:
@@ -119,6 +119,8 @@ public:
|
||||
StaticAssert<DataTypeKind(DataType::DataTypeKind) == DataTypeKindMessage>::check();
|
||||
}
|
||||
|
||||
virtual ~Subscriber() { stop(); }
|
||||
|
||||
int start(Callback callback)
|
||||
{
|
||||
stop();
|
||||
|
||||
Reference in New Issue
Block a user