Set current call = null earlier when pausing.

This commit is contained in:
Guillaume Beraudo 2011-11-24 16:24:56 +01:00
parent 72a5086327
commit bb2582f220

View file

@ -2525,10 +2525,10 @@ int linphone_core_pause_call(LinphoneCore *lc, LinphoneCall *call)
if (lc->vtable.display_warning)
lc->vtable.display_warning(lc,_("Could not pause the call"));
}
lc->current_call=NULL;
linphone_call_set_state(call,LinphoneCallPausing,"Pausing call");
if (lc->vtable.display_status)
lc->vtable.display_status(lc,_("Pausing the current call..."));
lc->current_call=NULL;
if (call->audiostream || call->videostream)
linphone_call_stop_media_streams (call);
return 0;