From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/2] client: Fix not detecting advertising instance is no longer valid
Date: Wed, 1 Nov 2017 16:31:52 +0200 [thread overview]
Message-ID: <20171101143152.30642-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20171101143152.30642-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If the advertising interfaces is removed while registered it should be
considered unregistered.
---
client/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/client/main.c b/client/main.c
index 5ce65ef02..3536c9524 100644
--- a/client/main.c
+++ b/client/main.c
@@ -678,9 +678,7 @@ static void proxy_removed(GDBusProxy *proxy, void *user_data)
} else if (!strcmp(interface, "org.bluez.GattManager1")) {
gatt_remove_manager(proxy);
} else if (!strcmp(interface, "org.bluez.LEAdvertisingManager1")) {
- if(!dbus_conn){
- ad_unregister(dbus_conn, NULL);
- }
+ ad_unregister(dbus_conn, NULL);
}
}
--
2.13.6
next prev parent reply other threads:[~2017-11-01 14:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-01 14:31 [PATCH BlueZ 1/2] doc/advertising-api: Mark LEAdvertisingManager1 stable Luiz Augusto von Dentz
2017-11-01 14:31 ` Luiz Augusto von Dentz [this message]
2017-11-02 12:09 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171101143152.30642-2-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).