summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-30 15:19:04 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-30 15:19:04 -0300
commitd090c7671b64780d077e9daa89ba26845891f82a (patch)
tree3f036279ff490b893c1ec13381ab19816a198ac7 /src
parent9009725785ef6e8a7600c5796bdfeedc1586a845 (diff)
Prevent emitting duplicate signals for DiscoverableTimeout property.
Diffstat (limited to 'src')
-rw-r--r--src/adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index f192ccba..d850bee3 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -806,6 +806,9 @@ static DBusMessage *set_discoverable_timeout(DBusConnection *conn,
struct btd_adapter *adapter = data;
const char *path;
+ if (adapter->discov_timeout == timeout && timeout == 0)
+ return dbus_message_new_method_return(msg);
+
if (adapter->discov_timeout_id) {
g_source_remove(adapter->discov_timeout_id);
adapter->discov_timeout_id = 0;