summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothStatusCodes.java
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-02-09 09:47:11 +0000
committerJakub Tyszkowski <jakub.tyszkowski@codecoup.pl>2022-02-09 16:53:18 +0000
commitadc9ed0f69e9e7db9f4326cf65c10e4982cea7c8 (patch)
treeade0e431a6775918d91538c78f3b18d977cecd2a /framework/java/android/bluetooth/BluetoothStatusCodes.java
parent96a7ffd23c5e3e043b991668579e3ef7f368ad86 (diff)
Fix concurrency issues on state machine shutdown
We should wait for the state machine thread to finish any message handling as it can still call into the main service. In some cases the race condition manifested itself when the state machine was calling okToConnect() on the service when mAdapterService was already set to null by the main service's stop() call. Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I75278ccc904881fe20ca7a9451d88ba8720c2740
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothStatusCodes.java')
0 files changed, 0 insertions, 0 deletions