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

Commit a626f999 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

gatt: Avoid using erased iterator

am: 0942ee49

Change-Id: I2a6daafd9ecec3f056c965081b55d16d2ed62543
parents e5a0dcc1 0942ee49
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ bool DatabaseBuilder::StartNextServiceExploration() {
    services_to_discover.erase(handle_range);

    // Empty service declaration, nothing to explore, skip to next.
    if (handle_range->first == handle_range->second) continue;
    if (pending_service.first == pending_service.second) continue;

    pending_characteristic = HANDLE_MIN;
    return true;