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:
Julian Oes
2019-09-28 16:40:13 -04:00
committed by Daniel Agar
parent 0486d69240
commit b0035e5704
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -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};