diff --git a/src/main/java/com/hivemq/cli/mqtt/AbstractMqttClientExecutor.java b/src/main/java/com/hivemq/cli/mqtt/AbstractMqttClientExecutor.java index cdee01b79..c2e8feecf 100644 --- a/src/main/java/com/hivemq/cli/mqtt/AbstractMqttClientExecutor.java +++ b/src/main/java/com/hivemq/cli/mqtt/AbstractMqttClientExecutor.java @@ -267,8 +267,8 @@ public boolean isConnected(final @NotNull ClientKey key) { } private @NotNull Mqtt5Client connectMqtt5Client( - final @NotNull ConnectOptions connectOptions, - final @Nullable SubscribeOptions subscribeOptions) throws Exception { + final @NotNull ConnectOptions connectOptions, final @Nullable SubscribeOptions subscribeOptions) + throws Exception { final MqttClientBuilder clientBuilder = createBuilder(connectOptions); final Mqtt5Client client = clientBuilder.useMqttVersion5() .advancedConfig() @@ -317,9 +317,6 @@ public boolean isConnected(final @NotNull ClientKey key) { .publishes(MqttGlobalPublishFilter.REMAINING, buildRemainingMqtt5PublishesCallback(subscribeOptions, client)); - - System.setProperty("javax.net.debug", "ssl:handshake"); - mqtt5Connect(client, connectBuilder.build()); final ClientData clientData = new ClientData(client);