OSDN Git Service

gd_acl: Upon le disconnect use proper transport conn map
authorChris Manton <cmanton@google.com>
Thu, 21 Jan 2021 20:20:23 +0000 (12:20 -0800)
committerChris Manton <cmanton@google.com>
Thu, 21 Jan 2021 20:22:27 +0000 (12:22 -0800)
Bug: 178065202
Test: Compiles
Tag: #refactor
Change-Id: Ifd5e027f707c22faaf07b95434a8daacf43eb30a

main/shim/acl.cc

index 23297c1..e4684e1 100644 (file)
@@ -922,9 +922,9 @@ void bluetooth::shim::legacy::Acl::OnLeLinkDisconnected(HciHandle handle,
   hci::AddressWithType remote_address_with_type =
       pimpl_->handle_to_le_connection_map_[handle]->GetRemoteAddressWithType();
   CreationTime creation_time =
-      pimpl_->handle_to_classic_connection_map_[handle]->GetCreationTime();
+      pimpl_->handle_to_le_connection_map_[handle]->GetCreationTime();
   bool is_locally_initiated =
-      pimpl_->handle_to_classic_connection_map_[handle]->IsLocallyInitiated();
+      pimpl_->handle_to_le_connection_map_[handle]->IsLocallyInitiated();
 
   TeardownTime teardown_time = std::chrono::system_clock::now();