diff --git a/lib/src/main/java/xyz/gianlu/librespot/audio/cdn/CdnManager.java b/lib/src/main/java/xyz/gianlu/librespot/audio/cdn/CdnManager.java index 51ddf514..b2cecdf5 100644 --- a/lib/src/main/java/xyz/gianlu/librespot/audio/cdn/CdnManager.java +++ b/lib/src/main/java/xyz/gianlu/librespot/audio/cdn/CdnManager.java @@ -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); }