Commit 46ca46c9 authored by Simon Morlat's avatar Simon Morlat
Browse files

prevent terminating a call that is already in error state

parent 49ec5eeb
......@@ -3856,6 +3856,7 @@ int linphone_core_terminate_call(LinphoneCore *lc, LinphoneCall *the_call)
switch (call->state) {
case LinphoneCallReleased:
case LinphoneCallEnd:
case LinphoneCallError:
ms_warning("No need to terminate a call [%p] in state [%s]",call,linphone_call_state_to_string(call->state));
return -1;
case LinphoneCallIncomingReceived:
......
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