mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:19:17 +08:00
ScheduledWorkItem: do not call ScheduleClear() if not init in destructor
This avoids that unit tests trying to access a wq hang. It still fails with an error currently.
This commit is contained in:
@@ -38,7 +38,9 @@ namespace px4
|
||||
|
||||
ScheduledWorkItem::~ScheduledWorkItem()
|
||||
{
|
||||
ScheduleClear();
|
||||
if (_call.arg != nullptr) {
|
||||
ScheduleClear();
|
||||
}
|
||||
}
|
||||
|
||||
void ScheduledWorkItem::schedule_trampoline(void *arg)
|
||||
|
||||
Reference in New Issue
Block a user