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

Commit 07db314b authored by JohnLai's avatar JohnLai
Browse files

floss: Connect to all profiles after bonded

Connect to all profiles after bonded. Otherwise, floss
won't connect to any profile and will disconnect the acl
link.

Bug: 306113830
Tag: #floss
Test: m Bluetooth && pts-bot GAP
Flag: EXEMPT floss only changes
Change-Id: I1f251968dcd3c17db3898731e5b482b073809288
parent 87e20f6c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -176,6 +176,9 @@ class HostService(host_grpc_aio.HostServicer):

                    if not success:
                        raise RuntimeError(f'Failed to connect to the {address}. Reason: {reason}')

                    if self.bluetooth.is_bonded(address) and self.bluetooth.is_connected(address):
                        self.bluetooth.connect_device(address)
            finally:
                self.bluetooth.adapter_client.unregister_callback_observer(name, observer)