diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2020-02-27 05:23:39 +0300 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2020-02-28 12:08:21 +0300 |
commit | 2bba786b2543811c28f379fa12f3c7110ff0664f (patch) | |
tree | 1212cf3d3073d774bdff22af1e9b16e2ec23450b | |
parent | 5b73cb427d1a40d55f4aa1865bbcb7b304226748 (diff) |
Do not apply properties that weren't actually read
Change-Id: Id42829b63d5bbab0dc2f930a3f313d1b4d68704a
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r-- | src/mqtt/qmqttconnection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mqtt/qmqttconnection.cpp b/src/mqtt/qmqttconnection.cpp index 671987f..e81500d 100644 --- a/src/mqtt/qmqttconnection.cpp +++ b/src/mqtt/qmqttconnection.cpp @@ -810,7 +810,8 @@ void QMqttConnection::readAuthProperties(QMqttAuthenticationProperties &properti break; } } - properties.setUserProperties(userProperties); + if (!userProperties.isEmpty()) + properties.setUserProperties(userProperties); } void QMqttConnection::readConnackProperties(QMqttServerConnectionProperties &properties) |