mirror of git://git.sysmocom.de/ofono
handsfree: Reflow logic
This commit is contained in:
parent
02138901d3
commit
ca3ae87d0a
|
@ -298,17 +298,18 @@ out:
|
|||
|
||||
static void query_cnum(struct ofono_handsfree *hf)
|
||||
{
|
||||
if (hf->driver->cnum_query == NULL) {
|
||||
if (hf->pending) {
|
||||
DBusMessage *reply =
|
||||
generate_get_properties_reply(hf, hf->pending);
|
||||
__ofono_dbus_pending_reply(&hf->pending, reply);
|
||||
}
|
||||
DBusMessage *reply;
|
||||
|
||||
if (hf->driver->cnum_query != NULL) {
|
||||
hf->driver->cnum_query(hf, hf_cnum_callback, hf);
|
||||
return;
|
||||
}
|
||||
|
||||
hf->driver->cnum_query(hf, hf_cnum_callback, hf);
|
||||
if (hf->pending == NULL)
|
||||
return;
|
||||
|
||||
reply = generate_get_properties_reply(hf, hf->pending);
|
||||
__ofono_dbus_pending_reply(&hf->pending, reply);
|
||||
}
|
||||
|
||||
static DBusMessage *handsfree_get_properties(DBusConnection *conn,
|
||||
|
|
Loading…
Reference in New Issue