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

Commit d438f96f authored by Charlie Boutier's avatar Charlie Boutier
Browse files

PandoraServer: fix waitDisconnection

Bug: 278717741
Test: atest avatar android vs android

Change-Id: I56eb4bcfbd2b9f70edd577db5a6748d94b00599a
parent d5354191
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -316,8 +316,7 @@ class Host(
                throw RuntimeException("Bluetooth is not enabled, cannot waitDisconnection")
            }
            if (
                bluetoothDevice.bondState != BluetoothDevice.BOND_NONE &&
                    !waitedAclDisconnection.contains(bluetoothDevice)
                bluetoothDevice.isConnected() && !waitedAclDisconnection.contains(bluetoothDevice)
            ) {
                flow
                    .filter { it.action == BluetoothDevice.ACTION_ACL_DISCONNECTED }