prevent terminating a call that is already in error state

This commit is contained in:
Simon Morlat 2015-11-16 17:25:25 +01:00
parent 49ec5eeb22
commit 46ca46c953

View file

@ -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: