diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2020-05-07 03:38:38 +0300 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2020-05-15 18:58:26 +0200 |
commit | a5facff1658a0e4e2b6deddc1a77675be51056cc (patch) | |
tree | 35c2c094f312b8caa66647e24a1dea6c15f4b4f3 | |
parent | 8509e7c2b836002d5f0a468d36e8071fd3d90a91 (diff) |
Do not change state in QMqttSubscription::unsubscribe()
the state of a respective subscription is updated by the UNSUBACK handler,
once the broker confirms unsubscription
(see QMqttConnection::finalize_unsuback() for details)
Change-Id: Ib5c06dc7813609a66fad577d594447fade357a3e
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r-- | src/mqtt/qmqttsubscription.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mqtt/qmqttsubscription.cpp b/src/mqtt/qmqttsubscription.cpp index 2b526a9..cf9d555 100644 --- a/src/mqtt/qmqttsubscription.cpp +++ b/src/mqtt/qmqttsubscription.cpp @@ -209,7 +209,6 @@ void QMqttSubscription::unsubscribe() { Q_D(QMqttSubscription); d->m_client->unsubscribe(d->m_topic); - setState(Unsubscribed); } void QMqttSubscription::setTopic(const QMqttTopicFilter &topic) |