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

Commit 421d0fb8 authored by Abel Lucas's avatar Abel Lucas Committed by Gerrit Code Review
Browse files

Merge "bumble_experimental/Asha: Test against dual registration of the ASHA service" into main

parents beb92fd0 544f98db
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -211,7 +211,10 @@ class AshaService(AshaServicer):
    @utils.rpc
    async def Register(self, request: RegisterRequest, context: grpc.ServicerContext) -> Empty:
        logging.info("Register")
        # asha service from bumble profile
        if self.asha_service:
            self.asha_service.capability = request.capability
            self.asha_service.hisyncid = request.hisyncid
        else:
            self.asha_service = AshaGattService(request.capability, request.hisyncid, self.device)
            self.device.add_service(self.asha_service)  # type: ignore[no-untyped-call]
        return Empty()