From dcf1c32f4c08ad9920e543f32dff24dc65f1f028 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 11 Aug 2010 17:45:39 -0500 Subject: [PATCH] voicecall: Make logic bit cleaner --- src/voicecall.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/voicecall.c b/src/voicecall.c index d08504c..c1fbbeb 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; } -- 2.7.4