Fix the AVRCP connection fail issue 70/215570/1 accepted/tizen/unified/20191014.005000 submit/tizen/20191011.013701
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 11 Oct 2019 01:33:32 +0000 (10:33 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 11 Oct 2019 01:33:32 +0000 (10:33 +0900)
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 <dh79.pyun@samsung.com>
bt-oal/bluez_hal/src/bt-hal-agent.c

index 79a51df..a71f26d 100644 (file)
@@ -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");