From a035f8b0e25a28b569699e6597ba6d54e32c7373 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Thu, 9 Feb 2012 10:12:34 +0100 Subject: [PATCH] voicecall: Fix emulator AT+CHUP for HFP AT+CHUP should be able to hang-up active or incoming calls --- src/voicecall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/voicecall.c b/src/voicecall.c index 094f41d..e224d3a 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -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; -- 2.7.4