Skip to content

Commit 4aed6c6

Browse files
committed
don't create json array twice
1 parent 8591b0e commit 4aed6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/socket/client/Socket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public void run() {
353353

354354
int type = HasBinary.hasBinary(jsonArgs)
355355
? Parser.BINARY_ACK : Parser.ACK;
356-
Packet<JSONArray> packet = new Packet<JSONArray>(type, new JSONArray(Arrays.asList(args)));
356+
Packet<JSONArray> packet = new Packet<JSONArray>(type, jsonArgs);
357357
packet.id = id;
358358
self.packet(packet);
359359
}

0 commit comments

Comments
 (0)