diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2012-06-01 14:48:37 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-02 09:09:52 +0800 |
commit | cc4838e601df2daee66dfd94c264cface3e67651 (patch) | |
tree | 263b9ee1ada6a05339234f3c47b84c0b8285253b /src/device.c | |
parent | 9bfc21c2dd0b865097093582192ccb5f1dd4ffe2 (diff) | |
download | bluez-cc4838e601df2daee66dfd94c264cface3e67651.tar.gz |
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.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |