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

Commit 28c13e1d authored by Weichin Weng's avatar Weichin Weng Committed by Android (Google) Code Review
Browse files

Merge "Close unexpected HearingAid open event if is not attempting to connect" into qt-dev

parents 439b2ff7 1bf77773
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;
    }