From 88c40575ff682169913056f31f05fdb38dc2f12a Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Wed, 15 Dec 2021 13:25:04 +0100 Subject: [PATCH] do not delete the airports --- src/PlugIn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PlugIn.cpp b/src/PlugIn.cpp index 084bcbe..ce7d8b1 100644 --- a/src/PlugIn.cpp +++ b/src/PlugIn.cpp @@ -683,7 +683,8 @@ void PlugIn::OnTimer(int counter) { if (EuroScopePlugIn::CONNECTION_TYPE_NO == this->GetConnectionType()) { if (true == this->m_connectedToNetwork) { std::lock_guard guardUpdate(this->m_updateQueueLock); - this->m_updateQueue.clear(); + for (auto& airport : this->m_updateQueue) + airport.second.clear(); std::lock_guard guardInbound(this->m_inboundsQueueLock); this->m_inbounds.clear();