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

Commit ef4c16a7 authored by Jack He's avatar Jack He Committed by Android (Google) Code Review
Browse files

Merge "Ensure repeated connections are captured" into tm-dev

parents 85dc4f4b 78374f5f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -269,7 +269,11 @@ class LeAclManagerFacadeService : public LeAclManagerFacade::Service, public LeC
    auto role = shared_connection->GetRole();
    if (role == Role::PERIPHERAL) {
      ASSERT(incoming_connection_events_ != nullptr);
      if (per_connection_events_.find(peer) == per_connection_events_.end()) {
        per_connection_events_.emplace(peer, incoming_connection_events_);
      } else {
        per_connection_events_[peer] = incoming_connection_events_;
      }
      incoming_connection_events_.reset();
    } else if (direct_connection_address_ == peer) {
      direct_connection_address_ = AddressWithType();