voicecall: Fix emulator AT+CHUP for HFP

AT+CHUP should be able to hang-up active or incoming calls
This commit is contained in:
Frédéric Danis 2012-02-09 10:12:34 +01:00 committed by Denis Kenzior
parent d5bdd1f741
commit a035f8b0e2
1 changed files with 2 additions and 1 deletions

View File

@ -2931,7 +2931,8 @@ static void emulator_chup_cb(struct ofono_emulator *em,
goto done;
}
if (voicecalls_have_active(vc) == FALSE)
if (voicecalls_have_active(vc) == FALSE &&
voicecalls_have_incoming(vc) == FALSE)
goto fail;
vc->pending_em = em;