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 21:44:26 +0000 (14:44 -0700)
commit5b96667c28d868a3c93edec0b9d7242532fcfb78
treea5a7b1b706ae9da66629314fb199440a2baab333
parentc5c668a6d453f057d0a39534264c6f641d36892b
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