New issue
Advanced search Search tips

Issue 684263 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 597053



Sign in to add a comment

bluetooth: Devices are marked as connected before they actually connect.

Project Member Reported by ortuno@chromium.org, Jan 24 2017

Issue description

In BluetoothRemoteGATTServer::connect[1] we call bluetooth()->addDevice which adds the device to the map of connected devices. We do this even before we actually connect to the device. We should only add a device to the map once we've established a connection.

p.s. We should also change the name to be more descriptive i.e. addToConnectedDevicesMap.

[1] https://cs.chromium.org/chromium/src/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp?sq=package:chromium&dr&rcl=1485202678&l=75
 

Comment 1 by juncai@chromium.org, Jan 24 2017

Cc: -juncai@chromium.org
Owner: juncai@chromium.org
Status: Assigned (was: Available)

Comment 2 by juncai@chromium.org, Jan 24 2017

Components: Blink>Bluetooth
Status: Started (was: Assigned)

Comment 4 by juncai@chromium.org, Jan 24 2017

Status: Fixed (was: Started)

Sign in to add a comment