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

Commit f324ac07 authored by Weichin Weng's avatar Weichin Weng Committed by Gerrit Code Review
Browse files

Merge "Close unexpected HearingAid open event if is not attempting to connect"

parents cfe9e37f 5a9d4568
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -343,7 +343,11 @@ class HearingAidImpl : public HearingAid {

    HearingDevice* hearingDevice = hearingDevices.FindByAddress(address);
    if (!hearingDevice) {
      DVLOG(2) << "Skipping unknown device, address=" << address;
      /* When Hearing Aid is quickly disabled and enabled in settings, this case
       * might happen */
      LOG(WARNING) << "Closing connection to non hearing-aid device, address="
                   << address;
      BTA_GATTC_Close(conn_id);
      return;
    }