linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] core: Fix connecting to an already connected device on pairing
@ 2012-10-11  5:30 João Paulo Rechi Vita
  2012-10-11  6:58 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: João Paulo Rechi Vita @ 2012-10-11  5:30 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index d85d41c..0635dee 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2940,7 +2940,7 @@ DBusMessage *device_create_bonding(struct btd_device *device,
 	device->bonding = bonding;
 	bonding->device = device;
 
-	if (device_is_le(device)) {
+	if (device_is_le(device) && !device_is_connected(device)) {
 		adapter_connect_list_add(adapter, device);
 		return NULL;
 	}
-- 
1.7.11.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11  5:30 [PATCH BlueZ] core: Fix connecting to an already connected device on pairing João Paulo Rechi Vita
2012-10-11  6:58 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).