summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-21 13:58:32 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-21 13:58:32 +0000
commitc01205fa5a60824b7bf6a945d1dbc4a7656f2005 (patch)
tree1f661caba6e8189aff22518cfbe18153fe253957
parent8f45228761ad142238071611024f92a5f5b56037 (diff)
send DiscoveryCompleted before PeriodicDiscoveryStopped
-rw-r--r--hcid/dbus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c
index 9c11ab09..b95aaaf6 100644
--- a/hcid/dbus.c
+++ b/hcid/dbus.c
@@ -1160,11 +1160,6 @@ void hcid_dbus_periodic_inquiry_exit(bdaddr_t *local, uint8_t status)
pdata->pdiscovery_requestor = NULL;
}
- /* Send discovery completed signal if there isn't name to resolve */
- message = dbus_message_new_signal(path, ADAPTER_INTERFACE,
- "PeriodicDiscoveryStopped");
- send_reply_and_unref(connection, message);
-
/* workaround: inquiry completed is not sent when exiting from periodic inquiry */
if (pdata->disc_active) {
message = dbus_message_new_signal(path, ADAPTER_INTERFACE,
@@ -1173,6 +1168,11 @@ void hcid_dbus_periodic_inquiry_exit(bdaddr_t *local, uint8_t status)
pdata->disc_active = 0;
}
+
+ /* Send discovery completed signal if there isn't name to resolve */
+ message = dbus_message_new_signal(path, ADAPTER_INTERFACE,
+ "PeriodicDiscoveryStopped");
+ send_reply_and_unref(connection, message);
done:
bt_free(local_addr);
}