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

Commit 6b6cdfe1 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "gd: Register close callback prior to channel acquire" am: 64ac98cf...

Merge "gd: Register close callback prior to channel acquire" am: 64ac98cf am: 12b57bce am: e087e11e

Change-Id: Ib8a63443380a778ee5a10305777ebaf18a0c206e
parents 3ed14e33 e087e11e
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) {