hfp_hf_bluez5: UUIDs can change after Pairing
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Thu, 18 Apr 2013 17:50:38 +0000 (14:50 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 18 Apr 2013 13:37:17 +0000 (08:37 -0500)
For example, in the case of a remote-initiated pairing, the device may
be created and Paired first, then the UUID array is emitted later.

plugins/hfp_hf_bluez5.c

index 2c67a215f874180a81e6e077ae3c0da424a86f80..2b9275b372bdcfe6069ca2376ee4c3c1d1cd31da 100644 (file)
@@ -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);