From 3abb6d368d14e944f06f58acb09dc5fddde969be Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Fri, 17 Jan 2014 01:25:41 +0200 Subject: [PATCH] android/hidhost: Fix connection state notification on profile unregister Issue found while writing end2end tests. Usually profile unregister is called when final cleanup of bluetoothd. Freeing connected hid devices through g_slist_foreach is a asynchronous call. Profile is cleaned up and and ipc also complete cleanup. But free_hid_devices tries to notify hal which doesn't exist that time. So behaviour is unexpected. --- android/hidhost.c | 1 - 1 file changed, 1 deletion(-) diff --git a/android/hidhost.c b/android/hidhost.c index d66e863fc..c2a3dc43c 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -1328,7 +1328,6 @@ static void free_hid_devices(gpointer data, gpointer user_data) { struct hid_device *dev = data; - bt_hid_notify_state(dev, HAL_HIDHOST_STATE_DISCONNECTED); hid_device_free(dev); } -- 2.47.3