diff options
author | Armin Weatherwax | 2011-03-13 09:16:20 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-03-13 09:19:52 +0100 |
commit | 56bf45f3493689b5eb60cf99580adf11d6b02508 (patch) | |
tree | 22a38cb183bdaf079b3550e00fe98afbd2a0175b | |
parent | fix bogus in install.xml (diff) | |
download | meta-impy-56bf45f3493689b5eb60cf99580adf11d6b02508.zip meta-impy-56bf45f3493689b5eb60cf99580adf11d6b02508.tar.gz meta-impy-56bf45f3493689b5eb60cf99580adf11d6b02508.tar.bz2 meta-impy-56bf45f3493689b5eb60cf99580adf11d6b02508.tar.xz |
fix voice doesn't kick in.
also fixed some LL_INFOS that should be LL_WARNS in the voice client.
-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 5517ca2..c05f685 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -1537,12 +1537,10 @@ void LLVoiceClient::start() | |||
1537 | 1537 | ||
1538 | void LLVoiceClient::stateMachine() | 1538 | void LLVoiceClient::stateMachine() |
1539 | { | 1539 | { |
1540 | if(gDisconnected) | 1540 | |
1541 | { | 1541 | // Disable voice as long as the viewer is disconnected from the sim (login/relog) |
1542 | // The viewer has been disconnected from the sim. Disable voice. | 1542 | setVoiceEnabled(!gDisconnected); |
1543 | setVoiceEnabled(false); | 1543 | |
1544 | } | ||
1545 | |||
1546 | if(mVoiceEnabled) | 1544 | if(mVoiceEnabled) |
1547 | { | 1545 | { |
1548 | updatePosition(); | 1546 | updatePosition(); |
@@ -1559,7 +1557,7 @@ void LLVoiceClient::stateMachine() | |||
1559 | if(!mConnected) | 1557 | if(!mConnected) |
1560 | { | 1558 | { |
1561 | // if voice was turned off after the daemon was launched but before we could connect to it, we may need to issue a kill. | 1559 | // if voice was turned off after the daemon was launched but before we could connect to it, we may need to issue a kill. |
1562 | LL_INFOS("Voice") << "Disabling voice before connection to daemon, terminating." << LL_ENDL; | 1560 | LL_WARNS("Voice") << "Disabling voice before connection to daemon, terminating." << LL_ENDL; |
1563 | killGateway(); | 1561 | killGateway(); |
1564 | } | 1562 | } |
1565 | 1563 | ||
@@ -1764,7 +1762,7 @@ void LLVoiceClient::stateMachine() | |||
1764 | } | 1762 | } |
1765 | else | 1763 | else |
1766 | { | 1764 | { |
1767 | LL_INFOS("Voice") << exe_path << " not found." << LL_ENDL; | 1765 | LL_WARNS("Voice") << exe_path << " not found." << LL_ENDL; |
1768 | mVoiceEnabled = false; | 1766 | mVoiceEnabled = false; |
1769 | } | 1767 | } |
1770 | } | 1768 | } |
@@ -3783,7 +3781,7 @@ void LLVoiceClient::loginResponse(int statusCode, std::string &statusString, std | |||
3783 | if ( statusCode == 401 ) | 3781 | if ( statusCode == 401 ) |
3784 | { | 3782 | { |
3785 | // Login failure which is probably caused by the delay after a user's password being updated. | 3783 | // Login failure which is probably caused by the delay after a user's password being updated. |
3786 | LL_INFOS("Voice") << "Account.Login response failure (" << statusCode << "): " << statusString << LL_ENDL; | 3784 | LL_WARNS("Voice") << "Account.Login response failure (" << statusCode << "): " << statusString << LL_ENDL; |
3787 | setState(stateLoginRetry); | 3785 | setState(stateLoginRetry); |
3788 | } | 3786 | } |
3789 | else if(statusCode != 0) | 3787 | else if(statusCode != 0) |
@@ -3961,7 +3959,7 @@ void LLVoiceClient::sessionAddedEvent( | |||
3961 | } | 3959 | } |
3962 | else | 3960 | else |
3963 | { | 3961 | { |
3964 | LL_INFOS("Voice") << "Could not generate caller id from uri, using hash of uri " << session->mSIPURI << LL_ENDL; | 3962 | LL_WARNS("Voice") << "Could not generate caller id from uri, using hash of uri " << session->mSIPURI << LL_ENDL; |
3965 | setUUIDFromStringHash(session->mCallerID, session->mSIPURI); | 3963 | setUUIDFromStringHash(session->mCallerID, session->mSIPURI); |
3966 | session->mSynthesizedCallerID = true; | 3964 | session->mSynthesizedCallerID = true; |
3967 | 3965 | ||
@@ -4479,7 +4477,7 @@ void LLVoiceClient::participantUpdatedEvent( | |||
4479 | } | 4477 | } |
4480 | else | 4478 | else |
4481 | { | 4479 | { |
4482 | LL_INFOS("Voice") << "unknown session " << sessionHandle << LL_ENDL; | 4480 | LL_WARNS("Voice") << "unknown session " << sessionHandle << LL_ENDL; |
4483 | } | 4481 | } |
4484 | } | 4482 | } |
4485 | 4483 | ||
@@ -5073,7 +5071,7 @@ void LLVoiceClient::parcelChanged() | |||
5073 | else | 5071 | else |
5074 | { | 5072 | { |
5075 | // The transition to stateNoChannel needs to kick this off again. | 5073 | // The transition to stateNoChannel needs to kick this off again. |
5076 | LL_INFOS("Voice") << "not logged in yet, deferring" << LL_ENDL; | 5074 | LL_WARNS("Voice") << "not logged in yet, deferring" << LL_ENDL; |
5077 | } | 5075 | } |
5078 | } | 5076 | } |
5079 | 5077 | ||