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

Commit d98b72fa authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Fix for disconnecting ACL

Don't clear conn_id before DisconnectACL is called.
This will be cleared in OnGattDisconnected function.
It would affect handling stream timeout

Bug: 270677410
Tag: #feature
Test: atest BluetoothInstrumentationTests
Change-Id: Ia6a61e8527dfc931f6d16a63e23ac26cb9b40a34
parent 79ded336
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1362,8 +1362,6 @@ class LeAudioClientImpl : public LeAudioClient {

    BtaGattQueue::Clean(leAudioDevice->conn_id_);
    BTA_GATTC_Close(leAudioDevice->conn_id_);
    leAudioDevice->conn_id_ = GATT_INVALID_CONN_ID;
    leAudioDevice->mtu_ = 0;

    /* Remote in bad state, force ACL Disconnection. */
    if (acl_force_disconnect) {