OSDN Git Service

Send connected callback immediately when attempting to connect to already connected...
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 15 Apr 2019 20:07:27 +0000 (22:07 +0200)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 16 Apr 2019 11:40:33 +0000 (13:40 +0200)
commit4c0701f21b724225776617c8788ed5eb87b90044
treece119b3b0f41f420450c6d8e73b71356a80283b2
parent29a9284d99fa5a69434cd3f862f401b3a17425b4
Send connected callback immediately when attempting to connect to already connected device

Instead of adding the device to the connection manager, just send the
successfull connection callback.

This patch is restoring behaviour from before Connection Manager
refactor. During the refactor this behaviour was broken.

Bug: 130273570
Test: sl4a GattConnectTest
Change-Id: Ic4fa7089a8262f6f792206496a7cfb9c83a16eb2
stack/gatt/gatt_main.cc