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

Commit 07c68b47 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:...

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

Change-Id: I72adef2f31889d336f06a8aa54d85dfb532a99e8
parents e702e71b 130bae44
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);
  }
}