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 21:39:36 +0000 (23:39 +0200)
commit55015964ef5180aca63eb8b9ddb070201e3168ec
treede7c4aa79c494eb43235421c414d931773bc566f
parent076f33f677d444d8ab7d06c06e50c26c74ddecb6
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
Merged-In: Ic4fa7089a8262f6f792206496a7cfb9c83a16eb2
stack/gatt/gatt_main.cc