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

Commit c097c925 authored by Chris Manton's avatar Chris Manton
Browse files

Reset fixed channel after callback called

Bug: 139137147
Test: Verify no ASSERT when remote closes channel

Change-Id: Iecd2f267c89a85444ce08d332f933a292085ce7f
parent ae1b370b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ void ClassicPairingHandler::OnConnectionClose(hci::ErrorCode error_code) {
  // Called when the connection gets closed
  LOG_ERROR("Connection closed due to: %s", hci::ErrorCodeText(error_code).c_str());
  ASSERT(fixed_channel_ != nullptr);
  fixed_channel_.reset();
  Cancel();
}