[AFV] Ref T730, added graceful shutdown in AFV client itself

Also disconnect from network during "shutdown"
This commit is contained in:
Klaus Basan
2019-10-12 18:18:06 +02:00
parent d2de52f818
commit 3880de5e0c
3 changed files with 13 additions and 2 deletions

View File

@@ -105,8 +105,7 @@ namespace BlackCore
{
if (m_voiceClient)
{
m_voiceClient->stopAudio();
m_voiceClient->quitAndWait();
m_voiceClient->gracefulShutdown();
Q_ASSERT_X(CThreadUtils::isCurrentThreadObjectThread(m_voiceClient), Q_FUNC_INFO, "Needs to be back in current thread");
m_voiceClient = nullptr;
}