+19
−21
+37
−36
+63
−64
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
When HID host is connected, uhid file descriptor is opened from bta_hh in main thread. However, when it is disconnected, uhid file descriptor is closed from btif_hh in jni thread. If the HID device gets disconnected and connected in quick succession, the race condition can cause connection to fail. Bug: 264988156 Test: Manual Change-Id: I9ff6196eeebdd0a1dd5245f29a174c4b28dbe1b6