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

Commit 12b57bce authored by Chris Manton's avatar Chris Manton Committed by android-build-merger
Browse files

Merge "gd: Register close callback prior to channel acquire"

am: 64ac98cf

Change-Id: Ib2440215240eaaf2d394e401c6d39ebd1290c3d5
parents 0d3bad62 64ac98cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,9 +86,9 @@ void ClassicPairingHandler::OnConnectionOpen(std::unique_ptr<l2cap::classic::Fix
  ASSERT(fixed_channel_ == nullptr);
  fixed_channel_ = std::move(fixed_channel);
  ASSERT(fixed_channel_->GetDevice() == GetRecord()->GetPseudoAddress().GetAddress());
  fixed_channel_->Acquire();
  fixed_channel_->RegisterOnCloseCallback(
      security_handler_, common::BindOnce(&ClassicPairingHandler::OnConnectionClose, common::Unretained(this)));
  fixed_channel_->Acquire();
}

void ClassicPairingHandler::OnConnectionFail(l2cap::classic::FixedChannelManager::ConnectionResult result) {