Fix for graceful shutdown to avoid "nullptr" issue

see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232
This commit is contained in:
Klaus Basan
2020-03-31 15:48:44 +02:00
committed by Mat Sutcliffe
parent b125d474c7
commit e13dcd7d7d

View File

@@ -231,7 +231,11 @@ namespace BlackCore
void CContextAudioBase::gracefulShutdown()
{
this->terminateVoiceClient();
m_selcalPlayer->gracefulShutdown();
if (m_selcalPlayer)
{
m_selcalPlayer->gracefulShutdown();
m_selcalPlayer = nullptr;
}
QObject::disconnect(this);
}