diff options
-rw-r--r-- | linden/indra/newview/llvoiceclient.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llvoiceclient.cpp b/linden/indra/newview/llvoiceclient.cpp index 07d2fa9..3cf15fc 100644 --- a/linden/indra/newview/llvoiceclient.cpp +++ b/linden/indra/newview/llvoiceclient.cpp | |||
@@ -1051,6 +1051,11 @@ void LLVoiceClientCapResponder::result(const LLSD& content) | |||
1051 | 1051 | ||
1052 | gVoiceClient->setSpatialChannel(uri, credentials, mResponseID); | 1052 | gVoiceClient->setSpatialChannel(uri, credentials, mResponseID); |
1053 | } | 1053 | } |
1054 | else | ||
1055 | { | ||
1056 | llwarns << "ParcelVoiceInfoRequest response malformed, disabling voice." << llendl; | ||
1057 | gVoiceClient->close(); | ||
1058 | } | ||
1054 | } | 1059 | } |
1055 | 1060 | ||
1056 | 1061 | ||
@@ -1771,11 +1776,13 @@ void LLVoiceClient::close() | |||
1771 | { | 1776 | { |
1772 | LL_DEBUGS("VoiceSession") << "Cancel Session: LLVoiceClient::close() called." | 1777 | LL_DEBUGS("VoiceSession") << "Cancel Session: LLVoiceClient::close() called." |
1773 | << llendl; | 1778 | << llendl; |
1779 | mAccountActive = false; | ||
1774 | setState(stateDisableCleanup); | 1780 | setState(stateDisableCleanup); |
1775 | } | 1781 | } |
1776 | 1782 | ||
1777 | void LLVoiceClient::start() | 1783 | void LLVoiceClient::start() |
1778 | { | 1784 | { |
1785 | mAccountActive = true; | ||
1779 | setState(stateStart); | 1786 | setState(stateStart); |
1780 | } | 1787 | } |
1781 | 1788 | ||
@@ -7207,6 +7214,11 @@ class LLViewerParcelVoiceInfo : public LLHTTPNode | |||
7207 | gVoiceClient->setPIRCapResponseID(response_id); | 7214 | gVoiceClient->setPIRCapResponseID(response_id); |
7208 | gVoiceClient->setSpatialChannel(uri, credentials, response_id); | 7215 | gVoiceClient->setSpatialChannel(uri, credentials, response_id); |
7209 | } | 7216 | } |
7217 | else | ||
7218 | { | ||
7219 | llwarns << "ParcelVoiceInfoRequest response malformed, disabling voice." << llendl; | ||
7220 | gVoiceClient->close(); | ||
7221 | } | ||
7210 | } | 7222 | } |
7211 | } | 7223 | } |
7212 | }; | 7224 | }; |