diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-08-01 08:08:46 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2018-08-01 08:45:59 +0000 |
commit | dea00d88b8bae270fba82d1c65f6b3361218397d (patch) | |
tree | 1e7ecc598dfa886ac40a32eeed1feb0b4fe6488d | |
parent | c79f5fead7412793a00fc9a1e78ae9d434d3ba29 (diff) |
Fix usage of missing data
When reconnecting, remove the previous information on missing data as
the connection is started freshly.
When peeking the control packet, do not take missing data into account.
Change-Id: Idfdef05d0a3ad4eb42efa5fb98bd3a637e586ce0
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r-- | src/mqtt/qmqttconnection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mqtt/qmqttconnection.cpp b/src/mqtt/qmqttconnection.cpp index 8c058d7..f010cad 100644 --- a/src/mqtt/qmqttconnection.cpp +++ b/src/mqtt/qmqttconnection.cpp @@ -251,6 +251,7 @@ bool QMqttConnection::sendControlConnect() } m_internalState = BrokerWaitForConnectAck; + m_missingData = 0; return true; } |