Loading system/btif/src/btif_hl.c +8 −4 Original line number Diff line number Diff line Loading @@ -5056,11 +5056,15 @@ static inline int btif_hl_close_select_thread(void) char sig_on = btif_hl_signal_select_exit; BTIF_TRACE_DEBUG0("btif_hl_signal_select_exit"); result = send(signal_fds[1], &sig_on, sizeof(sig_on), 0); /* Wait for the select_thread_id to exit */ if (btif_is_enabled()) { /* Wait for the select_thread_id to exit if BT is still enabled and only this profile getting cleaned up*/ if (select_thread_id != -1) { pthread_join(select_thread_id, NULL); select_thread_id = -1; } } /* Cleanup signal sockets */ if(signal_fds[0] != -1) { Loading Loading
system/btif/src/btif_hl.c +8 −4 Original line number Diff line number Diff line Loading @@ -5056,11 +5056,15 @@ static inline int btif_hl_close_select_thread(void) char sig_on = btif_hl_signal_select_exit; BTIF_TRACE_DEBUG0("btif_hl_signal_select_exit"); result = send(signal_fds[1], &sig_on, sizeof(sig_on), 0); /* Wait for the select_thread_id to exit */ if (btif_is_enabled()) { /* Wait for the select_thread_id to exit if BT is still enabled and only this profile getting cleaned up*/ if (select_thread_id != -1) { pthread_join(select_thread_id, NULL); select_thread_id = -1; } } /* Cleanup signal sockets */ if(signal_fds[0] != -1) { Loading