Diff between ccd29841c3799c68ed90eb050661ffeccea78c9b and 0ee2d331d9390ddc47e812601a19f9440a6266ca

Changed Files

File Additions Deletions Status
plugins/policy.c +2 -0 modified

Full Patch

diff --git a/plugins/policy.c b/plugins/policy.c
index 0330456..c9a7c84 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -714,6 +714,8 @@ static void disconnect_cb(struct btd_device *dev, uint8_t reason)
 	if (!reconnect || !reconnect->reconnect)
 		return;
 
+	reconnect_reset(reconnect);
+
 	DBG("Device %s identified for auto-reconnection",
 							device_get_path(dev));