summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-04-22 17:02:39 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-03-11 11:38:30 +0200
commit24548faf1810491d9cd3b9fbd97c002d68bbfed6 (patch)
tree2d0e76e8b92f8099cefcb697076b729176568fda
parent30889f605b7da1f3a3a94ee7f0676d1e914a0b8b (diff)
downloadbluez-24548faf1810491d9cd3b9fbd97c002d68bbfed6.tar.gz
policy: Fix removing reconnect flag while still connecting
If a service connects it should stop new attempts but the current ones should continue so reconnection should not be reset.
-rw-r--r--plugins/policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/policy.c b/plugins/policy.c
index 5a289101d..cd0cb61e5 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -664,7 +664,7 @@ static void service_cb(struct btd_service *service,
*/
reconnect = reconnect_add(service);
- reconnect_reset(reconnect);
+ reconnect->active = false;
/*
* Should this device be reconnected? A matching UUID might not