diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-01-30 11:38:08 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-02-02 07:59:20 +0000 |
commit | 50a203b7eb245a97a5879979a3d2dea48eacde69 (patch) | |
tree | cf32c85948be22cfa64e56f07360a25adf202a7e /src/mqtt/qmqttclient.cpp | |
parent | 45d87f0d9260ef0c42434daa329e77aecf3f5d46 (diff) |
Fix error state handling
Checking for NoError was done on the wrong variable.
Change-Id: I3206333c0e69124ac22ccddcd329a63b7df0f761
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/mqtt/qmqttclient.cpp')
-rw-r--r-- | src/mqtt/qmqttclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mqtt/qmqttclient.cpp b/src/mqtt/qmqttclient.cpp index a765f60..29eb4d2 100644 --- a/src/mqtt/qmqttclient.cpp +++ b/src/mqtt/qmqttclient.cpp @@ -694,7 +694,7 @@ void QMqttClientPrivate::setStateAndError(QMqttClient::ClientState s, QMqttClien if (s != m_state) q->setState(s); - if (m_error != QMqttClient::NoError && m_error != e) + if (e != QMqttClient::NoError && m_error != e) q->setError(e); } |