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

Commit 130bae44 authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

Merge "GATT connection_manager: Fix logic to remove white list device" am: 69f4fd9f

am: ceaf37f1

Change-Id: Idc7db05fb31b068d386052cb10f8d446dc318416
parents 61227d86 ceaf37f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -167,11 +167,11 @@ void on_app_deregistered(uint8_t app_id) {
void on_connection_complete(const RawAddress& address) {
  VLOG(2) << __func__;
  auto it = bgconn_dev.find(address);
  if (it == bgconn_dev.end()) return;

  while (!it->second.doing_direct_conn.empty()) {
  while (it != bgconn_dev.end() && !it->second.doing_direct_conn.empty()) {
    uint8_t app_id = it->second.doing_direct_conn.begin()->first;
    direct_connect_remove(app_id, address);
    it = bgconn_dev.find(address);
  }
}