From: Michael Brudevold <[email protected]>
The CallRemoved signal was not being sent for existing calls when the voicecall
atom was unregistered. An example of this is the lack of a CallRemoved signal
when an HFP AG is disconnected due to SLC timeout while a call is active.
---
src/voicecall.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 104b600..263f1ee 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2699,8 +2699,11 @@ static void voicecall_unregister(struct ofono_atom *atom)
if (vc->dial_req)
dial_request_finish(vc);
- for (l = vc->call_list; l; l = l->next)
+ for (l = vc->call_list; l; l = l->next) {
+ voicecalls_emit_call_removed(vc, l->data);
+
voicecall_dbus_unregister(vc, l->data);
+ }
g_slist_free(vc->call_list);
vc->call_list = NULL;
--
1.7.5.4
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono