mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 05:03:35 +08:00
mavlink: prevent race if shut down immediately
If we do mavlink stop-all right after mavlink start, we do a perf_free before actually having stopped the threads accessing the perf counters.
This commit is contained in:
@@ -546,7 +546,7 @@ private:
|
||||
|
||||
uORB::PublicationQueued<telemetry_status_s> _telem_status_pub{ORB_ID(telemetry_status)};
|
||||
|
||||
bool _task_running{false};
|
||||
bool _task_running{true};
|
||||
static bool _boot_complete;
|
||||
static constexpr int MAVLINK_MAX_INSTANCES{4};
|
||||
static constexpr int MAVLINK_MIN_INTERVAL{1500};
|
||||
|
||||
Reference in New Issue
Block a user