forked from Archive/PX4-Autopilot
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:
parent
07306c4be3
commit
fe1b726b62
|
@ -38,7 +38,9 @@ namespace px4
|
|||
|
||||
ScheduledWorkItem::~ScheduledWorkItem()
|
||||
{
|
||||
ScheduleClear();
|
||||
if (_call.arg != nullptr) {
|
||||
ScheduleClear();
|
||||
}
|
||||
}
|
||||
|
||||
void ScheduledWorkItem::schedule_trampoline(void *arg)
|
||||
|
|
Loading…
Reference in New Issue