diff options
author | JJ Linden <jj@lindenlab.com> | 2013-05-15 14:57:56 -0700 |
---|---|---|
committer | JJ Linden <jj@lindenlab.com> | 2013-05-15 14:57:56 -0700 |
commit | a606a1cd68bd858c711856702185ae11194c6311 (patch) | |
tree | 2c060215b7ddc02492d715cae6b48d5f3c26f335 /indra/newview/llvoicevivox.cpp | |
parent | 435bda9df464ef7faaf8329ffa094dca9e82a6a4 (diff) | |
parent | 50e3b7da42ddbae409f0a2bdbc322da96941fa07 (diff) |
merged in branch for changing BuildParams
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llvoicevivox.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 9b5d981aa5..abead02174 100644..100755 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -532,25 +532,25 @@ void LLVivoxVoiceClient::requestVoiceAccountProvision(S32 retries) { LLViewerRegion *region = gAgent.getRegion(); - if ( region && (mVoiceEnabled || !mIsInitialized)) + // If we've not received the capability yet, return. + // the password will remain empty, so we'll remain in + // stateIdle + if ( region && + region->capabilitiesReceived() && + (mVoiceEnabled || !mIsInitialized)) { std::string url = region->getCapability("ProvisionVoiceAccountRequest"); - if ( url.empty() ) + if ( !url.empty() ) { - // we've not received the capability yet, so return. - // the password will remain empty, so we'll remain in - // stateIdle - return; - } - - LLHTTPClient::post( - url, - LLSD(), - new LLVivoxVoiceAccountProvisionResponder(retries)); + LLHTTPClient::post( + url, + LLSD(), + new LLVivoxVoiceAccountProvisionResponder(retries)); - setState(stateConnectorStart); + setState(stateConnectorStart); + } } } @@ -7660,6 +7660,9 @@ void LLVivoxProtocolParser::processResponse(std::string tag) */ // We don't need to process this, but we also shouldn't warn on it, since that confuses people. } + else if (!stricmp(eventTypeCstr, "VoiceServiceConnectionStateChangedEvent")) + { // Yet another ignored event + } else { LL_WARNS("VivoxProtocolParser") << "Unknown event type " << eventTypeString << LL_ENDL; |