Skip to content

Commit 77787e7

Browse files
committed
Parsing very long Spirc frames
1 parent 02d2089 commit 77787e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/xyz/gianlu/librespot/spirc/SpotifyIrc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public final void event(MercuryClient.@NotNull Response resp) {
186186
String ident = session.deviceId();
187187

188188
try {
189-
Spirc.Frame frame = Spirc.Frame.parseFrom(resp.payload.get(0));
189+
Spirc.Frame frame = Spirc.Frame.parseFrom(resp.payload.stream());
190190
if (ident.equals(frame.getIdent()) || (frame.getRecipientCount() > 0 && !frame.getRecipientList().contains(ident))) {
191191
LOGGER.trace(String.format("Skipping message, not for us, ident: %s, recipients: %s", frame.getIdent(), frame.getRecipientList()));
192192
return;

0 commit comments

Comments
 (0)