Fix WebRTC voice not working on Linux after 2 minutes

This commit is contained in:
Hecklezz
2026-05-21 02:31:32 +10:00
parent 763c20fbf7
commit 133616e28b
+4 -1
View File
@@ -961,7 +961,10 @@ bool LLVivoxVoiceClient::endAndDisconnectSession()
bool LLVivoxVoiceClient::callbackEndDaemon(const LLSD& data)
{
if (!sShuttingDown && mVoiceEnabled)
// <FS:TJ> Fix WebRTC voice not working on Linux after 2 minutes
//if (!sShuttingDown && mVoiceEnabled)
if (!sShuttingDown && mVoiceEnabled && mIsInitialized)
// </FS:TJ>
{
LL_WARNS("Voice") << "SLVoice terminated " << ll_stream_notation_sd(data) << LL_ENDL;
terminateAudioSession(false);