voicecall: Make logic bit cleaner

This commit is contained in:
Denis Kenzior 2010-08-11 17:45:39 -05:00
parent 516d1545a1
commit dcf1c32f4c
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}