commit | bac1f06eeded99fa43e00ac4114846a96c22e03c | [log] [tgz] |
---|---|---|
author | Jakub Pawlowski <jpawlowski@google.com> | Fri Dec 11 22:35:01 2015 -0800 |
committer | Jakub Pawlowski <jpawlowski@google.com> | Fri Dec 11 22:51:36 2015 -0800 |
tree | ecfec2f5c5dfb2fc318d002c33aa44b650f0b5b2 | |
parent | 12322a0f8069c920f08860ee3b53909a7a69934f [diff] |
Fix race condition when doing GATT discovery Right now if discovery to multiple GATT clients is happening simultaneously, onSearchComplete will be run only for device that finishes discovery last, while it should be run for each device. mSearchQueue is one for all discovery sessions. Instead of checking if it's empty, we must check if there are no elements for given connId. Bug: 26038939 Change-Id: I9417cd7be8cab4b808ce7f045861e1adc2055629