From 0087831eb7c6733ccf92214997f1dcdf0615c748 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 9 Nov 2015 14:37:38 +0200 Subject: [PATCH] core/device: Fix not responding to Connect If profile is removed while its connection is pending it may not respond to Connect method and not cleaning up properly leaving dev->connect set which will prevent any attempt to connect to the device again. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 672297614..e76b8bb0a 100644 --- a/src/device.c +++ b/src/device.c @@ -1498,7 +1498,7 @@ static void device_profile_connected(struct btd_device *dev, btd_device_set_temporary(dev, false); if (dev->pending == NULL) - return; + goto done; if (!btd_device_is_connected(dev)) { switch (-err) { -- 2.47.3