aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorAndre Dieb Martins <andre.dieb@signove.com>2011-02-07 17:11:36 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-02-08 15:07:23 -0800
commit2fab731d89c2055e49f6c5ff261241ff9ae7422c (patch)
treed62990577d1898e8c8c7ab63d37f058395bfb403 /attrib/client.c
parent1c93c6fa88016166faf1a3d4b0d72531393834f9 (diff)
downloadbluez-2fab731d89c2055e49f6c5ff261241ff9ae7422c.tar.gz
bluez-2fab731d89c2055e49f6c5ff261241ff9ae7422c.tar.xz
bluez-2fab731d89c2055e49f6c5ff261241ff9ae7422c.zip
Fix GATT listen mode updating
Update gatt's listen-mode flag whenever connect_cb() is called again.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 44638d3e..ec5fcf22 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -356,6 +356,7 @@ static int l2cap_connect(struct gatt_service *gatt, GError **gerr,
if (gatt->attrib != NULL) {
gatt->attrib = g_attrib_ref(gatt->attrib);
+ gatt->listen = listen;
return 0;
}