[PATCH BlueZ 2/2] client: Fix not detecting advertising instance is no longer valid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux