summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index ec04f8d2..2b4c2092 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -587,7 +587,9 @@ static DBusMessage *voicecall_hangup(DBusConnection *conn,
return NULL;
case CALL_STATUS_HELD:
- if (single_call && vc->driver->release_all_held) {
+ if (vc->driver->release_all_held &&
+ voicecalls_num_held(vc) == 1 &&
+ voicecalls_have_waiting(vc) == FALSE) {
vc->pending = dbus_message_ref(msg);
vc->driver->release_all_held(vc, generic_callback, vc);