diff options
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp index d67b9e3..a6cec7b 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -1527,12 +1527,10 @@ void LLVoiceClient::setState(state inState) | |||
1527 | 1527 | ||
1528 | void LLVoiceClient::stateMachine() | 1528 | void LLVoiceClient::stateMachine() |
1529 | { | 1529 | { |
1530 | if(gDisconnected) | 1530 | |
1531 | { | 1531 | // Disable voice as long as the viewer is disconnected from the sim (login/relog) |
1532 | // The viewer has been disconnected from the sim. Disable voice. | 1532 | setVoiceEnabled(!gDisconnected); |
1533 | setVoiceEnabled(false); | 1533 | |
1534 | } | ||
1535 | |||
1536 | if(mVoiceEnabled) | 1534 | if(mVoiceEnabled) |
1537 | { | 1535 | { |
1538 | updatePosition(); | 1536 | updatePosition(); |
@@ -1549,7 +1547,7 @@ void LLVoiceClient::stateMachine() | |||
1549 | if(!mConnected) | 1547 | if(!mConnected) |
1550 | { | 1548 | { |
1551 | // if voice was turned off after the daemon was launched but before we could connect to it, we may need to issue a kill. | 1549 | // if voice was turned off after the daemon was launched but before we could connect to it, we may need to issue a kill. |
1552 | LL_INFOS("Voice") << "Disabling voice before connection to daemon, terminating." << LL_ENDL; | 1550 | LL_WARNS("Voice") << "Disabling voice before connection to daemon, terminating." << LL_ENDL; |
1553 | killGateway(); | 1551 | killGateway(); |
1554 | } | 1552 | } |
1555 | 1553 | ||
@@ -1753,7 +1751,7 @@ void LLVoiceClient::stateMachine() | |||
1753 | } | 1751 | } |
1754 | else | 1752 | else |
1755 | { | 1753 | { |
1756 | LL_INFOS("Voice") << exe_path << " not found." << LL_ENDL; | 1754 | LL_WARNS("Voice") << exe_path << " not found." << LL_ENDL; |
1757 | mVoiceEnabled = false; | 1755 | mVoiceEnabled = false; |
1758 | } | 1756 | } |
1759 | } | 1757 | } |
@@ -3772,7 +3770,7 @@ void LLVoiceClient::loginResponse(int statusCode, std::string &statusString, std | |||
3772 | if ( statusCode == 401 ) | 3770 | if ( statusCode == 401 ) |
3773 | { | 3771 | { |
3774 | // Login failure which is probably caused by the delay after a user's password being updated. | 3772 | // Login failure which is probably caused by the delay after a user's password being updated. |
3775 | LL_INFOS("Voice") << "Account.Login response failure (" << statusCode << "): " << statusString << LL_ENDL; | 3773 | LL_WARNS("Voice") << "Account.Login response failure (" << statusCode << "): " << statusString << LL_ENDL; |
3776 | setState(stateLoginRetry); | 3774 | setState(stateLoginRetry); |
3777 | } | 3775 | } |
3778 | else if(statusCode != 0) | 3776 | else if(statusCode != 0) |
@@ -3950,7 +3948,7 @@ void LLVoiceClient::sessionAddedEvent( | |||
3950 | } | 3948 | } |
3951 | else | 3949 | else |
3952 | { | 3950 | { |
3953 | LL_INFOS("Voice") << "Could not generate caller id from uri, using hash of uri " << session->mSIPURI << LL_ENDL; | 3951 | LL_WARNS("Voice") << "Could not generate caller id from uri, using hash of uri " << session->mSIPURI << LL_ENDL; |
3954 | setUUIDFromStringHash(session->mCallerID, session->mSIPURI); | 3952 | setUUIDFromStringHash(session->mCallerID, session->mSIPURI); |
3955 | session->mSynthesizedCallerID = true; | 3953 | session->mSynthesizedCallerID = true; |
3956 | 3954 | ||
@@ -4468,7 +4466,7 @@ void LLVoiceClient::participantUpdatedEvent( | |||
4468 | } | 4466 | } |
4469 | else | 4467 | else |
4470 | { | 4468 | { |
4471 | LL_INFOS("Voice") << "unknown session " << sessionHandle << LL_ENDL; | 4469 | LL_WARNS("Voice") << "unknown session " << sessionHandle << LL_ENDL; |
4472 | } | 4470 | } |
4473 | } | 4471 | } |
4474 | 4472 | ||
@@ -5062,7 +5060,7 @@ void LLVoiceClient::parcelChanged() | |||
5062 | else | 5060 | else |
5063 | { | 5061 | { |
5064 | // The transition to stateNoChannel needs to kick this off again. | 5062 | // The transition to stateNoChannel needs to kick this off again. |
5065 | LL_INFOS("Voice") << "not logged in yet, deferring" << LL_ENDL; | 5063 | LL_WARNS("Voice") << "not logged in yet, deferring" << LL_ENDL; |
5066 | } | 5064 | } |
5067 | } | 5065 | } |
5068 | 5066 | ||