From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html