mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Fix for graceful shutdown to avoid "nullptr" issue
see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232
This commit is contained in:
committed by
Mat Sutcliffe
parent
b125d474c7
commit
e13dcd7d7d
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user