From 2c9a2b8a993ae661f4607f14721f965a10b5a53e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 11 Aug 2010 17:55:16 -0500 Subject: voicecall: Don't hangup waiting calls During hangup_all operation. For multiparty hangups, waiting calls are not part of the mpty call. --- src/voicecall.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index c1fbbebb..f07cea69 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -766,12 +766,19 @@ static void emit_multiparty_call_list_changed(struct ofono_voicecall *vc) static void voicecalls_release_queue(struct ofono_voicecall *vc, GSList *calls) { GSList *l; + struct ofono_call *call; g_slist_free(vc->release_list); vc->release_list = NULL; - for (l = calls; l; l = l->next) + for (l = calls; l; l = l->next) { + call = l->data; + + if (call->status == CALL_STATUS_WAITING) + continue; + vc->release_list = g_slist_prepend(vc->release_list, l->data); + } } static void voicecalls_release_next(struct ofono_voicecall *vc) -- cgit v1.2.3