don't create json array twice

This commit is contained in:
nkzawa
2016-01-30 00:02:06 +09:00
parent 8591b0eb4f
commit 4aed6c68af

View File

@@ -353,7 +353,7 @@ public class Socket extends Emitter {
int type = HasBinary.hasBinary(jsonArgs)
? Parser.BINARY_ACK : Parser.ACK;
Packet<JSONArray> packet = new Packet<JSONArray>(type, new JSONArray(Arrays.asList(args)));
Packet<JSONArray> packet = new Packet<JSONArray>(type, jsonArgs);
packet.id = id;
self.packet(packet);
}