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

Commit 153a4e50 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix suspendStream crash caused by invalid mDataMQ"

parents 5b48727d 22f93cb7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -985,6 +985,10 @@ int BluetoothAudioClientInterface::EndSession() {
}

void BluetoothAudioClientInterface::FlushAudioData() {
  if (mDataMQ == nullptr || !mDataMQ->isValid()) {
    LOG(WARNING) << __func__ << ", mDataMQ invalid";
    return;
  }
  size_t size = mDataMQ->availableToRead();
  uint8_t p_buf[size];