remove double lock

This commit is contained in:
Sven Czarnian
2021-12-26 09:29:50 +01:00
parent 06271fde5b
commit 0a586f88c3

View File

@@ -809,7 +809,6 @@ void PlugIn::updateSequence(std::shared_ptr<aman::AircraftSequence>& sequence) {
if (false == found) {
/* delete the forced runway selection */
std::lock_guard guard(this->m_updateQueueLock);
auto selected = this->m_selectedRunway.find(it->first);
if (this->m_selectedRunway.end() != selected)
this->m_selectedRunway.erase(selected);