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

Commit 83fd5e92 authored by Chienyuan's avatar Chienyuan
Browse files

gd: Fix bug of AdvertisingCache

Tag: #gd-refactor
Bug: 177044452
Test: gd/cert/run --host
Change-Id: Ib7052061335e6eb9eed13c74272f6f80c1550d97
parent 2777b9a7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ class AdvertisingCache {
    auto it = Find(address_with_type);
    if (it != items.end()) {
      it->data = std::move(data);
      return it->data;
    }

    if (items.size() > cache_max) {