diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-12 13:14:05 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-12 13:15:52 -0500 |
commit | c7b13ec2fe664b122216a312f2442c9ca26f5f43 (patch) | |
tree | 8f13cc7af63d1d2e0527ac147737a5883f2eaf6a | |
parent | fa2c29c84fedc95946425d3a9f05730eb1bf4068 (diff) | |
download | ofono-c7b13ec2fe664b122216a312f2442c9ca26f5f43.tar.bz2 |
voicecall: Relax restriction for hangup_active
If hangup_active is present, then a single active call in a 3-way
situation is hung up using hangup_active.
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 41976ac9..5a803f78 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -354,7 +354,8 @@ static DBusMessage *voicecall_hangup(DBusConnection *conn, return NULL; } - if (single_call == TRUE && vc->driver->hangup_active != NULL) { + if (voicecalls_num_active(vc) == 1 && + vc->driver->hangup_active != NULL) { vc->pending = dbus_message_ref(msg); vc->driver->hangup_active(vc, generic_callback, vc); |