summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-05-11 17:52:05 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-05-11 17:52:05 -0700
commit9364f995b5815373637c401cb4fa49d7ead7d09a (patch)
tree301a97aece101cece2fa226e30f97f4454d2d5a9 /indra
parentc83eff097e673e8a640fbc0a32cd6f0b34b4a8cf (diff)
EXP-783 User can accept a call and see end call option in IM window but they are in nearby voice
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoicechannel.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llvoicechannel.cpp b/indra/newview/llvoicechannel.cpp
index a71539266d..b921b7a481 100644
--- a/indra/newview/llvoicechannel.cpp
+++ b/indra/newview/llvoicechannel.cpp
@@ -412,6 +412,7 @@ void LLVoiceChannel::doSetState(const EState& new_state)
{
EState old_state = mState;
mState = new_state;
+
if (!mStateChangedCallback.empty())
mStateChangedCallback(old_state, mState, mCallDirection, mCallEndedByAgent);
}
@@ -846,8 +847,11 @@ void LLVoiceChannelP2P::activate()
// otherwise answering the call
else
{
- LLVoiceClient::getInstance()->answerInvite(mSessionHandle);
-
+ if (!LLVoiceClient::getInstance()->answerInvite(mSessionHandle))
+ {
+ handleError(ERROR_UNKNOWN);
+ return;
+ }
// using the session handle invalidates it. Clear it out here so we can't reuse it by accident.
mSessionHandle.clear();
}