emqx / qmqtt

MQTT client for Qt
https://www.emqx.com
Other
692 stars 337 forks source link

Check internal connection state instead of socket state in QMQTT::isConnectedToHost() #235

Closed ejvr closed 2 years ago

ejvr commented 2 years ago

The isConnectedToHost function should not return true, if a TCP connection has been established already, but the handshake (CONNNECT / CONNACK massages) with the broker has not been completed yet.

This should fix issue #230