fix bug when declining a call.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@175 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
smorlat 2008-11-16 14:48:40 +00:00
parent 767dc47302
commit 6b6d345f5a
2 changed files with 6 additions and 2 deletions

View file

@ -982,7 +982,11 @@ void linphone_core_iterate(LinphoneCore *lc)
while((ev=eXosip_event_wait(0,0))!=NULL){
linphone_core_process_event(lc,ev);
}
if (lc->automatic_action==0) eXosip_automatic_action();
if (lc->automatic_action==0) {
eXosip_lock();
eXosip_automatic_action();
eXosip_unlock();
}
}
if (lc->call!=NULL){
LinphoneCall *call=lc->call;

View file

@ -353,7 +353,7 @@ void linphone_gtk_terminate_call(GtkWidget *button){
void linphone_gtk_decline_call(GtkWidget *button){
linphone_core_terminate_call(linphone_gtk_get_core(),NULL);
linphone_gtk_call_terminated(gtk_widget_get_toplevel(button));
linphone_gtk_call_terminated(linphone_gtk_get_main_window());
gtk_widget_destroy(gtk_widget_get_toplevel(button));
}