mirror of
https://github.com/qt/qtmqtt.git
synced 2026-10-25 16:16:26 +00:00
emit disconnected for state changes.
This commit is contained in:
parent
af338cefc3
commit
99867f2919
@ -212,6 +212,8 @@ void QMqttClient::setState(QMqttClient::State state)
|
||||
|
||||
d->m_state = state;
|
||||
emit stateChanged(state);
|
||||
if (d->m_state == QMqttClient::Disconnected)
|
||||
emit disconnected();
|
||||
}
|
||||
|
||||
QMqttClientPrivate::QMqttClientPrivate()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user