Skip to content

Commit

Permalink
fix access violation error
Browse files Browse the repository at this point in the history
occurs when processing invalid flightplans
  • Loading branch information
LeoKle committed Apr 14, 2024
1 parent c91928e commit f4d1e8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/DataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ void DataManager::setActiveAirports(const std::list<std::string> activeAirports)
}

void DataManager::queueFlightplanUpdate(EuroScopePlugIn::CFlightPlan flightplan) {
if (false == flightplan.IsValid()) return;
std::lock_guard guard(this->m_euroscopeUpdatesLock);
this->m_euroscopeFlightplanUpdates.push_back({std::chrono::utc_clock::now(), flightplan});
}
Expand Down

0 comments on commit f4d1e8e

Please sign in to comment.