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

Commit a41cd707 authored by Chienyuan's avatar Chienyuan
Browse files

gd: Fix address manager bug

Tag: #gd-refactor
Bug: 180869951
Test: gd/cert/run
Change-Id: Ia04aea10c686c8c4ec8985f2ba3f3424691ea825
parent d9279d66
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();
  }