For example, in the case of a incoming connection the device may be
created without UUIDs and the property changed is emitted later.
---
 plugins/hfp_hf_bluez5.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 2c67a21..2b9275b 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -744,7 +744,8 @@ static void property_changed(GDBusProxy *proxy, const char 
*name,
        if (g_str_equal(BLUEZ_DEVICE_INTERFACE, interface) == FALSE)
                return;
 
-       if (g_str_equal("Paired", name) != TRUE)
+       if (g_str_equal("Paired", name) != TRUE &&
+                                       g_str_equal("UUIDs", name) != TRUE)
                return;
 
        modem_register_from_proxy(proxy, path);
-- 
1.8.2.1

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to