policy: Use btd_service_is_initiator
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 16 Sep 2021 18:25:12 +0000 (11:25 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commitba42fea83bf2c7b11eee61e71d2f5af5d1cd8e4b
treeae4183eadaebca4e7d0167e92f9389c9a476e3be
parent4aee97f57d771f7bca6dee8a0c40a8f957c3fea0
policy: Use btd_service_is_initiator

Instead of using BTD_SERVICE_STATE_CONNECTING use
btd_service_is_initiator to determine if the service initiated the
connection and then proceed to connect other service immediately.

Fixes: https://github.com/bluez/bluez/issues/205
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
plugins/policy.c