summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/voicecall.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index d08504c3..c1fbbebb 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1162,12 +1162,12 @@ static DBusMessage *manager_hangup_all(DBusConnection *conn,
vc->pending = dbus_message_ref(msg);
- if (vc->driver->hangup_all != NULL)
- vc->driver->hangup_all(vc, generic_callback, vc);
- else {
+ if (vc->driver->hangup_all == NULL) {
voicecalls_release_queue(vc, vc->call_list);
voicecalls_release_next(vc);
- }
+ } else
+ vc->driver->hangup_all(vc, generic_callback, vc);
+
return NULL;
}