From bb2582f220ef902961efc42b3ca526d62605f600 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Thu, 24 Nov 2011 16:24:56 +0100 Subject: [PATCH] Set current call = null earlier when pausing. --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index f7d9c676c..cf827dd25 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;