Skip to content
Snippets Groups Projects
Commit 8a16e950 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Adrien Béraud
Browse files

manager: better handle answer call failure

If call->answer() fails then we should not continue further
(switchCall or addAudio doesn't make sense in the case of an invalid
call).

Change-Id: Ib68a7960cbb8a7b604d0f68136a6e0d538a22b8c
parent f6d001e3
No related branches found
No related tags found
No related merge requests found
...@@ -929,6 +929,11 @@ Manager::answerCall(const std::string& call_id) ...@@ -929,6 +929,11 @@ Manager::answerCall(const std::string& call_id)
// if it was waiting, it's waiting no more // if it was waiting, it's waiting no more
pimpl_->removeWaitingCall(call_id); pimpl_->removeWaitingCall(call_id);
if (!result) {
// do not switch to this call if it was not properly started
return false;
}
// if we dragged this call into a conference already // if we dragged this call into a conference already
if (isConferenceParticipant(call_id)) if (isConferenceParticipant(call_id))
pimpl_->switchCall(call->getConfId()); pimpl_->switchCall(call->getConfId());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment