From: DoHyun Pyun Date: Fri, 11 Oct 2019 01:33:32 +0000 (+0900) Subject: Fix the AVRCP connection fail issue X-Git-Tag: accepted/tizen/unified/20191014.005000^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a9eaf951a99547d3f8ba9219a4fa55c4e3e20ee;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix the AVRCP connection fail issue This patchset resolves the media key TC fail issue. (http://suprem.sec.samsung.net/jira/browse/TFDF-6009) Change-Id: Ie94689ddba136b5a2ae38632e85d945f83d056b6 Signed-off-by: DoHyun Pyun --- diff --git a/bt-oal/bluez_hal/src/bt-hal-agent.c b/bt-oal/bluez_hal/src/bt-hal-agent.c index 79a51df..a71f26d 100644 --- a/bt-oal/bluez_hal/src/bt-hal-agent.c +++ b/bt-oal/bluez_hal/src/bt-hal-agent.c @@ -195,6 +195,11 @@ void _bt_hal_agent_set_canceled(gboolean value) void _bt_hal_initialize_adapter_agent(void) { + if (adapter_agent) { + ERR("Adapter agent already exist!"); + return; + } + adapter_agent = _bt_hal_create_agent(BT_HAL_ADAPTER_AGENT_PATH, TRUE); if (!adapter_agent) { ERR("Fail to register agent");