fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

[Bug] FutureConnection method isConnected() return wrong status #115

Open ansonliaomelco opened 4 years ago

ansonliaomelco commented 4 years ago

Hi My mqtt-client version is 1.12

And I am facing the problem isFutureConnection#isConnectd() return the wrong status, the screenshot as below.

even the method FutureConnection#isConnected() return false, after statement System.out.println("MQTT connected?" + connection.isConnected());,

run FutureConnection#subscribe(...) and FutureConnection#publish(...) are works fine and FutureConnection#receive()#await() also received message well.

Please help to fix it.

image