voicecall: Don't hangup waiting calls

During hangup_all operation.  For multiparty hangups, waiting calls are
not part of the mpty call.
This commit is contained in:
Denis Kenzior 2010-08-11 17:55:16 -05:00
parent dcf1c32f4c
commit 2c9a2b8a99
1 changed files with 8 additions and 1 deletions

View File

@ -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)