OSDN Git Service

Ensure that services are cleaned from the GattServer HandleMap.
authorJeremy Klein <jlklein@google.com>
Fri, 8 Sep 2017 21:04:39 +0000 (14:04 -0700)
committerJeremy Klein <jlklein@google.com>
Fri, 8 Sep 2017 23:12:53 +0000 (16:12 -0700)
commite631789075f5625fd79c774678f4af0bf102c7d1
tree252b0c8cf35ccdeee9ca406695d615103faa9db4
parentaa4322821bc8cca05e7810451971ccc6a17acbf3
Ensure that services are cleaned from the GattServer HandleMap.

The incorrect service handle was being plumbed up to onServiceDeleted.
This was causing stale entries to stick around forever in the HandleMap,
which could later cause failures to find callback references in
ContextMap if the connection ID changed for a given device.

Bug: 65463237
Test: unit tests modified and run
Change-Id: I2e22858b447f4e6b5a4fbceee4c406191c84a67d
bta/gatt/bta_gatts_act.cc
test/suite/gatt/gatt_unittest.cc