Silence voice complaint about missing cap
This commit is contained in:
@@ -1828,7 +1828,7 @@ std::string LLViewerRegion::getCapability(const std::string& name) const
|
||||
{
|
||||
if (!capabilitiesReceived() && (name!=std::string("Seed")) && (name!=std::string("ObjectMedia")))
|
||||
{
|
||||
llwarns << "getCapability called before caps received" << llendl;
|
||||
llwarns << "getCapability("<<name<<") called before caps received" << llendl;
|
||||
}
|
||||
|
||||
CapabilityMap::const_iterator iter = mImpl->mCapabilities.find(name);
|
||||
|
||||
@@ -1579,7 +1579,7 @@ void LLVoiceClient::stateMachine()
|
||||
LLViewerRegion *region = gAgent.getRegion();
|
||||
LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
|
||||
if(region && parcel)
|
||||
if(region && parcel && region->capabilitiesReceived())
|
||||
{
|
||||
S32 parcelLocalID = parcel->getLocalID();
|
||||
std::string regionName = region->getName();
|
||||
@@ -1876,7 +1876,7 @@ void LLVoiceClient::stateMachine()
|
||||
{
|
||||
LLViewerRegion *region = gAgent.getRegion();
|
||||
|
||||
if(region)
|
||||
if(region && region->capabilitiesReceived())
|
||||
{
|
||||
if ( region->getCapability("ProvisionVoiceAccountRequest") != "" )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user