If reconnect() is called (which happen on auto-reconnection or on first connection done by loop_forever), any pending QoS = 0 message were dropped without unblocking wait_for_publish().
We now ensure wait_for_publish() is unblocked and raise RuntimeError with MQTT_ERR_CONN_LOST
If reconnect() is called (which happen on auto-reconnection or on first connection done by loop_forever), any pending QoS = 0 message were dropped without unblocking wait_for_publish().
We now ensure wait_for_publish() is unblocked and raise RuntimeError with MQTT_ERR_CONN_LOST
Fix #549