MqttClient.isConnected() returns true after call to MqttClient.disconnect()
Closed this issue · 2 comments
mhball commented
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