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

Commit ec47516c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Ensure repeated connections are captured"

parents e4063eb3 16b4e991
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();