Loading system/profile/avrcp/connection_handler.cc +0 −2 Original line number Diff line number Diff line Loading @@ -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; } } Loading Loading
system/profile/avrcp/connection_handler.cc +0 −2 Original line number Diff line number Diff line Loading @@ -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; } } Loading