diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-09-22 18:18:40 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-09-22 18:18:40 +0000 |
commit | 1fd3aceb53116277e3744ab94281ac0fd09c6382 (patch) | |
tree | 4bfc270103507c24d267cc6fbd6102f80d8ab2cf /hcid/dbus.c | |
parent | 5cb850bf90425f4bd0238f161689eb2b72a72c24 (diff) |
missing DiscoveryCompleted if GetRemoteName is called and there is inquiry running(started by NON D-Bus)
Diffstat (limited to 'hcid/dbus.c')
-rw-r--r-- | hcid/dbus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c index f92ae1b1..c4d1e453 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -1495,18 +1495,18 @@ void hcid_dbus_remote_name(bdaddr_t *local, bdaddr_t *peer, uint8_t status, char pdata->discovery_cancel = NULL; } - if (pdata->discover_type & RESOLVE_NAME) { - message = dbus_message_new_signal(path, - ADAPTER_INTERFACE, "DiscoveryCompleted"); - send_reply_and_unref(connection, message); - } - /* Disable name resolution for non D-Bus clients */ if (!pdata->pdiscovery_requestor) pdata->discover_type &= ~RESOLVE_NAME; } - pdata->disc_active = 0; + if (pdata->disc_active) { + message = dbus_message_new_signal(path, + ADAPTER_INTERFACE, "DiscoveryCompleted"); + send_reply_and_unref(connection, message); + + pdata->disc_active = 0; + } done: bt_free(local_addr); |