[AFV], Ref T730 only use AFV with VATSIM ecosystem

This commit is contained in:
Klaus Basan
2019-10-22 16:14:21 +02:00
parent 0a730ff5dd
commit 6e42889ecb

View File

@@ -433,6 +433,13 @@ namespace BlackCore
// we only change network connection of AFC client here
if (to.isConnected() && this->getIContextNetwork())
{
const CEcosystem ecoSystem = this->getIContextNetwork()->getConnectedServer().getEcosystem();
if (ecoSystem != CEcosystem::vatsim())
{
CLogMessage(this).info(u"Will not use AFV as ecosystem is '%1'") << ecoSystem.toQString(true);
return;
}
const CVoiceSetup vs = m_voiceSettings.getThreadLocal();
m_voiceClient->updateVoiceServerUrl(vs.getAfvVoiceServerUrl());