]> sjero.net Git - linphone/commitdiff
Set current call = null earlier when pausing.
authorGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Thu, 24 Nov 2011 15:24:56 +0000 (16:24 +0100)
committerGuillaume Beraudo <guillaume.beraudo@belledonne-communications.com>
Thu, 24 Nov 2011 15:24:56 +0000 (16:24 +0100)
coreapi/linphonecore.c

index f7d9c676caf6d79ec3dceab7e2330dd7a2e0a219..cf827dd258bfd749538e9874f726505b96b2a328 100644 (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;