OSDN Git Service

Fix for BluetoothGattCallback.onConnectionStateChange being called more than once
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 13 Jun 2019 14:31:53 +0000 (16:31 +0200)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 13 Jun 2019 19:35:03 +0000 (21:35 +0200)
commit981864174efb4755d177538219dc7fa842072e04
tree8596c1c7290748056abefd3f29a640e223cb1162
parentd8cdc6c2b802fbc0c5a5b4f1599a9e6d911e74b9
Fix for BluetoothGattCallback.onConnectionStateChange being called more than once

This patch fixes the issue, where the onConenctionStateCallback is being
called twice when device is connected. This happens only if device was
connected before, and the physical connection was kept alive.

This issue was introduced during white list refactor.

Test: GattConnectTest:test_gatt_connect_in_quick_succession
Bug: 117182283
Merged-In: Id94db9429e31224ef35eb2c99c0f9a65e7c27d32
Change-Id: Id94db9429e31224ef35eb2c99c0f9a65e7c27d32
stack/gatt/gatt_main.cc