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

Commit b98de368 authored by Cheney Ni's avatar Cheney Ni
Browse files

Remove unnecessary unlock

Bug: 124480689
Test: manual A2DP test
Change-Id: Id4cd4e2c97a9c4ed7219d8f1b4c15bf82b1031be
parent 1f48be6f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -379,7 +379,6 @@ static ssize_t out_write(struct audio_stream_out* stream, const void* buffer,
    if (stream->resume(stream)) {
      LOG(ERROR) << __func__ << ": state=" << out->bluetooth_output_.GetState()
                 << " failed to resume";
      lock.unlock();
      usleep(kBluetoothDefaultOutputBufferMs * 1000);
      return totalWritten;
    }