Commit 8a16e950 authored by Hugo Lefeuvre's avatar Hugo Lefeuvre Committed by Adrien Béraud

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

Change-Id: Ib68a7960cbb8a7b604d0f68136a6e0d538a22b8c
parent f6d001e3
......@@ -929,6 +929,11 @@ Manager::answerCall(const std::string& call_id)
// if it was waiting, it's waiting no more
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 (isConferenceParticipant(call_id))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment