Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit afd06853 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Android Build Coastguard Worker
Browse files

Revert "Set connection state to not connected while ACL is lost"

This reverts commit b9dd9b84.

Reason for revert: This is not valid fix.
device->conn_state is written when device might be not valid anymore, as
elements in the bta_dm_cb.device_list.peer_device[] are moved before device->conn_state is written.
Also, code already clears the  disconnected peer_device, so the patch is invalid.

It also might lead to situation, that conn_state for the connected device is incorrectly overriten.

Bug: 263698493
Test: manual connected disconnect set members and verify device.isConnected()
Tag: #feature
(cherry picked from commit 17545576)
Merged-In: Id58a371a447c6f2ac4ad35dabdda2d73ca8fe603
Change-Id: Id58a371a447c6f2ac4ad35dabdda2d73ca8fe603
(cherry picked from commit e0952a8e)
Merged-In: Id58a371a447c6f2ac4ad35dabdda2d73ca8fe603
parent b413c7c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment