summaryrefslogtreecommitdiff
path: root/plugins/policy.c
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>2017-03-07 13:06:43 +0200
commit16d6fe36f6fc3f6b1446b5460fba4dfba507d2f5 (patch)
treedc282f3ddd51f0578129d872b54e9ce352bd6637 /plugins/policy.c
parent9f73b2352973950a735fe27796d92ecdea88ce49 (diff)
downloadbluez-16d6fe36f6fc3f6b1446b5460fba4dfba507d2f5.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.
Diffstat (limited to 'plugins/policy.c')
-rw-r--r--plugins/policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/policy.c b/plugins/policy.c
index ece07b215..c54878a9a 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -649,7 +649,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