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

Commit da51543a authored by Joonghong Park's avatar Joonghong Park Committed by android-build-merger
Browse files

Merge "AVRCP: Keep the device in the map on disconnect" am: 061ea0e5 am:...

Merge "AVRCP: Keep the device in the map on disconnect" am: 061ea0e5 am: 885a2020 am: a3093484 am: 9350dfb7
am: aee98b80

Change-Id: I05afe62b91e574b1928b77120ddc2d919d946622
parents 3781c978 aee98b80
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -138,9 +138,7 @@ bool ConnectionHandler::ConnectDevice(const RawAddress& bdaddr) {
bool ConnectionHandler::DisconnectDevice(const RawAddress& bdaddr) {
  for (auto it = device_map_.begin(); it != device_map_.end(); it++) {
    if (bdaddr == it->second->GetAddress()) {
      it->second->DeviceDisconnected();
      uint8_t handle = it->first;
      device_map_.erase(handle);
      return avrc_->Close(handle) == AVRC_SUCCESS;
    }
  }