vert-x3/vertx-mqtt

MqttClient.isConnected() returns true after call to MqttClient.disconnect()

Closed this issue · 2 comments

The following Kotlin snippet prints true.

mqttClient.disconnect {
    if(it.succeeded()) {
        println(mqttClient.isConnected)
}

It seems an intentional disconnect doesn't set the isConnected flag to false.

vietj commented

actually it does but once the TCP connection is closed, I think it should be done before

vietj commented

See #179