mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
[AFV] Ref T730, do NOT stop audio when disconnecting from FSD
* only disconnect from AFV server * keep position tmer alive (preset values)
This commit is contained in:
@@ -417,6 +417,7 @@ namespace BlackCore
|
||||
Q_UNUSED(from)
|
||||
BLACK_VERIFY_X(this->getIContextNetwork(), Q_FUNC_INFO, "Missing network context");
|
||||
|
||||
// we only change network connection of AFC client here
|
||||
if (to.isConnected() && this->getIContextNetwork())
|
||||
{
|
||||
const CVoiceSetup vs = m_voiceSettings.getThreadLocal();
|
||||
@@ -427,7 +428,6 @@ namespace BlackCore
|
||||
}
|
||||
else if (to.isDisconnected())
|
||||
{
|
||||
m_voiceClient->stopAudio();
|
||||
m_voiceClient->disconnectFrom();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user