From cc4838e601df2daee66dfd94c264cface3e67651 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 1 Jun 2012 14:48:37 -0300 Subject: [PATCH] core: Fix repeated connection attempt This patch fixes possible repeated connections attempt to the same remote device when there is an attempt pending, since device drivers can request independently ATT connections. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 39aa0cb88..fc8c31add 100644 --- a/src/device.c +++ b/src/device.c @@ -3101,7 +3101,7 @@ guint btd_device_add_attio_callback(struct btd_device *device, } else { device->attios = g_slist_append(device->attios, attio); } - } else { + } else if (device->auto_id == 0) { device->auto_id = g_idle_add_full(G_PRIORITY_DEFAULT_IDLE, att_connect, device, att_connect_dispatched); -- 2.47.3