mirror of git://git.sysmocom.de/ofono
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:
parent
dcf1c32f4c
commit
2c9a2b8a99
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue