[AFV] Connect the network status change signal on both sides (core+UI),

as both sides can have independent audio (AFV) clients

This solves the issue that users have to restart audio on a "remote" swift GUI
This commit is contained in:
Klaus Basan
2020-01-24 21:31:58 +01:00
committed by Mat Sutcliffe
parent ecf5d45993
commit 08c004e69b

View File

@@ -276,11 +276,12 @@ namespace BlackCore
} }
// connection status of network changed // connection status of network changed
if (m_contextAudio && m_contextAudio->isUsingImplementingObject()) // with AFV no longer use m_contextAudio->isUsingImplementingObject() as audio can run on both sides
if (this->getCContextAudioBase() && m_contextNetwork)
{ {
Q_ASSERT(m_contextApplication); Q_ASSERT(m_contextApplication);
c = connect(m_contextNetwork, &IContextNetwork::connectionStatusChanged, c = connect(m_contextNetwork, &IContextNetwork::connectionStatusChanged,
this->getCContextAudio(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection); this->getCContextAudioBase(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection);
Q_ASSERT(c); Q_ASSERT(c);
times.insert("Post setup, connects audio", time.restart()); times.insert("Post setup, connects audio", time.restart());
} }