Fix switching radar sites while loading

This commit is contained in:
Dan Paulat 2023-04-12 23:24:27 -05:00
parent bb31bdfc00
commit 70ed01c155

View file

@ -164,6 +164,10 @@ public:
auto& [key, providerManager] = p;
providerManager->Disable();
});
// Lock other mutexes before destroying, ensure loading is complete
std::unique_lock loadLevel2DataLock {loadLevel2DataMutex_};
std::unique_lock loadLevel3DataLock {loadLevel3DataMutex_};
}
RadarProductManager* self_;