SL-17509 The viewer spams warnings if the user is in a parcel or region with voice disabled

meow-7.2.2
Mnikolenko Productengine 2022-06-01 17:42:25 +03:00
parent ce0286c33b
commit 0fe8493b5a
1 changed files with 15 additions and 2 deletions

View File

@ -1606,8 +1606,21 @@ bool LLVivoxVoiceClient::requestParcelVoiceInfo()
}
else
{
LL_WARNS("Voice") << "No voice channel credentials" << LL_ENDL;
LLVoiceChannel* channel = LLVoiceChannel::getCurrentVoiceChannel();
if (channel != NULL)
{
if (channel->getSessionName().empty() && channel->getSessionID().isNull())
{
if (LLViewerParcelMgr::getInstance()->allowAgentVoice())
{
LL_WARNS("Voice") << "No channel credentials for default channel" << LL_ENDL;
}
}
else
{
LL_WARNS("Voice") << "No voice channel credentials" << LL_ENDL;
}
}
}
}
else