summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2012-02-09 10:12:34 +0100
committerDenis Kenzior <denkenz@gmail.com>2012-02-09 14:21:51 -0600
commita035f8b0e25a28b569699e6597ba6d54e32c7373 (patch)
treed844d34131edb85b2e3c7e658b35176d503a90bc /src/voicecall.c
parentd5bdd1f7416bc06aeb1a8f86d37954ee61d32745 (diff)
downloadofono-a035f8b0e25a28b569699e6597ba6d54e32c7373.tar.bz2
voicecall: Fix emulator AT+CHUP for HFP
AT+CHUP should be able to hang-up active or incoming calls
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 094f41d8..e224d3a9 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;