Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac252b17 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Gerrit Code Review
Browse files

Merge "Don't treat pthread_t as a signed value type"

parents 6e4c1dca 791d9aa8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -493,11 +493,11 @@ void bta_hh_co_close(btif_hh_device_t* p_dev) {
#endif  // ENABLE_UHID_SET_REPORT

  /* Stop the polling thread */
  if (p_dev->hh_keep_polling) {
    p_dev->hh_keep_polling = 0;
  if (p_dev->hh_poll_thread_id > 0) {
    pthread_join(p_dev->hh_poll_thread_id, NULL);
  }
    p_dev->hh_poll_thread_id = -1;
  }
  /* UHID file descriptor is closed by the polling thread */
}