OSDN Git Service

Fix the reconnect issue in hfp client
authorJinguang Dong <dongjinguang@huawei.com>
Tue, 12 Jun 2018 11:56:24 +0000 (19:56 +0800)
committerJinguang Dong <dongjinguang@huawei.com>
Tue, 12 Jun 2018 12:20:13 +0000 (20:20 +0800)
The HFP client would not reconnect any more on collision scenario
as upper layer calls the connect API per 30s. which related with
CL of 5eccd90936d606e0070872b247fd3462e9c9c19b

Bug: 74518379

Test: Manual test for multiple incoming/outgoing HF connections
      between Android Wear and Handset

Signed-off-by: Kai Huang <huangkai1@huawei.com>
Change-Id: I445f3633165d8ec12f91bc5fe5a8217505318cff

bta/hf_client/bta_hf_client_main.cc

index 4f717ae..9bb8ab5 100644 (file)
@@ -386,7 +386,7 @@ void bta_hf_client_collision_cback(UNUSED_ATTR tBTA_SYS_CONN_STATUS status,
 
     /* reopen registered server */
     /* Collision may be detected before or after we close servers. */
-    // bta_hf_client_start_server();
+    bta_hf_client_start_server();
 
     /* Start timer to handle connection opening restart */
     alarm_set_on_mloop(client_cb->collision_timer,