Skip to content

Commit 119911f

Browse files
committed
Fixed implementation issue
1 parent 77787e7 commit 119911f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/xyz/gianlu/librespot/BytesArrayList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public int read(@NotNull byte[] b, int off, int len) {
109109
if (offset >= elementData[sub].length) {
110110
offset = 0;
111111
if (++sub >= elementData.length)
112-
return i;
112+
return i == 0 ? -1 : i;
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)