commit | b0ef94dcec73d7e4840880e8421519b07dff2b8d | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Thu Sep 01 12:04:07 2016 -0700 |
committer | Jakub Pawlowski <jpawlowski@google.com> | Fri Sep 02 00:16:49 2016 -0700 |
tree | 02093adf075b854114c0c87222ff9bf517bd0636 | |
parent | 660208ad2ee2ea394adab0d1c1cea9b068bb70c6 [diff] |
Fix ConcurrentModificationException in GattService.onScanResult If a scan client is added or removed while iterating over mRegularScanClients, a concurrent modification exception will be thrown, because we use a regular hash map. Use a ConcurrentHashMap instead to fix this issue. Bug: 31122137 Change-Id: Icbd427ebbe63adc6b5bd4ee950ef3a874ce6067b (cherry picked from commit 92d52b44ac480a23f98749c3a2884a5b3a23ff32)