Skip to content

Commit

Permalink
Fixed double read on first chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Nov 28, 2020
1 parent f6191ff commit e5a8ae7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ private Streamer(@NotNull StreamId streamId, @NotNull SuperAudioFormat format, @

available = new boolean[chunks];
requested = new boolean[chunks];

buffer = new byte[chunks][];
internalStream = new InternalStream(session.configuration().retryOnChunkError);

this.internalStream = new InternalStream(session.configuration().retryOnChunkError);
requested[0] = true;
writeChunk(firstChunk, 0, fromCache);
}

Expand Down

0 comments on commit e5a8ae7

Please sign in to comment.