Browse Source

Fixed regression introduced after BINARY_ACK change

master
Sergey Bushik 8 years ago
parent
commit
a31da6080f
  1. 2
      src/main/java/com/corundumstudio/socketio/protocol/PacketDecoder.java

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

@ -302,6 +302,7 @@ public class PacketDecoder {
if (packet.getSubType() == PacketType.EVENT
|| packet.getSubType() == PacketType.BINARY_EVENT) {
if (!packet.hasAttachments() || packet.isAttachmentsLoaded()) {
ByteBufInputStream in = new ByteBufInputStream(frame);
Event event = jsonSupport.readValue(packet.getNsp(), in, Event.class);
packet.setName(event.getName());
@ -309,5 +310,6 @@ public class PacketDecoder {
}
}
}
}
}
Loading…
Cancel
Save