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

Commit f27f955f authored by Robert Gross's avatar Robert Gross Committed by Automerger Merge Worker
Browse files

Ignore a2dp connection request in StateClosing am: 570864b1 am: f37db1f8

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1970944

Change-Id: Icee85c38decb6fab5442e7ed2e0945d9d30815a9
parents 67486bda f37db1f8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2320,6 +2320,15 @@ bool BtifAvStateMachine::StateClosing::ProcessEvent(uint32_t event,
      btif_a2dp_on_offload_started(peer_.PeerAddress(), BTA_AV_FAIL);
      break;

    case BTIF_AV_CONNECT_REQ_EVT:
      BTIF_TRACE_WARNING("%s: Peer %s : Ignore %s in StateClosing",
                         __PRETTY_FUNCTION__,
                         peer_.PeerAddress().ToString().c_str(),
                         BtifAvEvent::EventName(event).c_str());
      btif_queue_advance();
      peer_.StateMachine().TransitionTo(BtifAvStateMachine::kStateIdle);
      break;

    default:
      BTIF_TRACE_WARNING("%s: Peer %s : Unhandled event=%s",
                         __PRETTY_FUNCTION__,