From 24548faf1810491d9cd3b9fbd97c002d68bbfed6 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 22 Apr 2015 17:02:39 +0200 Subject: 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. --- plugins/policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1