Connecting to an invalid broker reports only a single state change if the connection fails. On a subsequent call it seems that the internal state has not been reset, since it reports bogus and valid states and errors on connect. See attached example.
|For Gerrit Dashboard: QTBUG-71795|
|245610,2||Reject connection request while in connecting state||5.12||qt/qtmqtt||Status: MERGED||+2||0|
|245611,3||Take transport errors into account||5.12||qt/qtmqtt||Status: MERGED||+2||0|