mirror of git://git.sysmocom.de/ofono
Fix: Handle callsetup=0 when no waiting or dialing call
When call=1 and callsetup=0, if no waiting or dialing call, the call is active and no need to notify status change.
This commit is contained in:
parent
f6d1397753
commit
5e1067b8a2
|
@ -776,6 +776,11 @@ static void ciev_callsetup_notify(struct ofono_voicecall *vc,
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* If call=1 and no call is waiting or dialing, the call
|
||||
* is active. */
|
||||
if (waiting == NULL && dialing == NULL)
|
||||
goto out;
|
||||
|
||||
/*
|
||||
* If call=1, in the waiting case we have to poll, since we
|
||||
* have no idea whether a waiting call gave up or we accepted
|
||||
|
|
Loading…
Reference in New Issue