diff --git a/src/main/java/com/github/manevolent/ts3j/protocol/packet/handler/local/LocalClientHandlerConnecting.java b/src/main/java/com/github/manevolent/ts3j/protocol/packet/handler/local/LocalClientHandlerConnecting.java index 26279d7..14b522f 100644 --- a/src/main/java/com/github/manevolent/ts3j/protocol/packet/handler/local/LocalClientHandlerConnecting.java +++ b/src/main/java/com/github/manevolent/ts3j/protocol/packet/handler/local/LocalClientHandlerConnecting.java @@ -143,13 +143,9 @@ public class LocalClientHandlerConnecting extends LocalClientHandler { } else if (packet.getBody() instanceof PacketBody2Command) { SimpleCommand command = ((PacketBody2Command) packet.getBody()).parse(); - Ts3Debugging.debug(command.build()); - if (command.getName().equalsIgnoreCase("initivexpand2")) { // 3.2.2 initivexpand2 (Client <- Server) - Ts3Debugging.debug(command.build()); - if (!command.get("ot").getValue().equals("1")) throw new IllegalArgumentException("ot constant != 1: " + command.get("ot").getValue()); @@ -231,6 +227,8 @@ public class LocalClientHandlerConnecting extends LocalClientHandler { ) ) ); + + getClient().setState(ClientConnectionState.CONNECTED); } else if (command.getName().equals("error")) { getClient().setState(ClientConnectionState.DISCONNECTED);