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

Commit 0f9e7181 authored by Chienyuan's avatar Chienyuan Committed by Automerger Merge Worker
Browse files

gd: Fix address manager bug am: a41cd707 am: 5a71b008

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1614948

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c0f20e7c382a0d13d61616b6d4719b7aea3d03a
parents 0327d073 5a71b008
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ AddressWithType LeAddressManager::GetAnotherAddress() {
}

void LeAddressManager::pause_registered_clients() {
  for (auto client : registered_clients_) {
  for (auto& client : registered_clients_) {
    if (client.second != ClientState::PAUSED && client.second != ClientState::WAITING_FOR_PAUSE) {
      client.second = ClientState::WAITING_FOR_PAUSE;
      client.first->OnPause();
@@ -229,7 +229,7 @@ void LeAddressManager::resume_registered_clients() {
    return;
  }

  for (auto client : registered_clients_) {
  for (auto& client : registered_clients_) {
    client.second = ClientState::WAITING_FOR_RESUME;
    client.first->OnResume();
  }