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

Commit 069a7c41 authored by Henri Chataing's avatar Henri Chataing Committed by Gerrit Code Review
Browse files

Merge "Prevent nullptr usage when packet tracing and connection goes away."

parents 2182787a 6cb9df5f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -104,8 +104,10 @@ void HciSniffer::TimerTick() { transport_->TimerTick(); }

void HciSniffer::Close() {
  transport_->Close();
  if (output_ != nullptr) {
    output_->flush();
  }
}

void HciSniffer::SendEvent(const std::vector<uint8_t>& packet) {
  AppendRecord(PacketDirection::CONTROLLER_TO_HOST, PacketType::EVENT, packet);