From 16d6fe36f6fc3f6b1446b5460fba4dfba507d2f5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 22 Apr 2015 17:02:39 +0200 Subject: [PATCH] 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 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 -- 2.47.3