Browse Source

Merge pull request #466 from tazija/master

Fixes regression introduced after BINARY_ACK change, should skip body parsing if attachments aren't loaded
master
Nikita Koksharov 8 years ago
committed by GitHub
parent
commit
05811fcaf7
  1. 4
      src/main/java/com/corundumstudio/socketio/protocol/PacketDecoder.java

4
src/main/java/com/corundumstudio/socketio/protocol/PacketDecoder.java

@ -292,6 +292,10 @@ public class PacketDecoder {
head.setLastBinaryPacket(packet);
}
if (packet.hasAttachments() && !packet.isAttachmentsLoaded()) {
return;
}
if (packet.getSubType() == PacketType.ACK
|| packet.getSubType() == PacketType.BINARY_ACK) {
ByteBufInputStream in = new ByteBufInputStream(frame);

Loading…
Cancel
Save