]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Convert remaining message states.
authorRoger A. Light <roger@atchoo.org>
Mon, 15 Sep 2014 13:10:04 +0000 (14:10 +0100)
committerRoger A. Light <roger@atchoo.org>
Mon, 15 Sep 2014 13:10:04 +0000 (14:10 +0100)
Change-Id: I4770c18969456ea28ef648494b0a1c9bac3bd86b

src/paho/mqtt/client.py

index a817f783ed9c82dc0cdd3b1df784dbb3dc8e68cf..b46dc1e207ca9a57a0d6f5628ebe89c6f1446614 100755 (executable)
@@ -2138,9 +2138,9 @@ class Client(object):
                 if m.qos > 0 and m.state == mqtt_ms_queued:
                     self._inflight_messages = self._inflight_messages + 1
                     if m.qos == 1:
-                        m.state = mqtt_ms_wait_puback
+                        m.state = mqtt_ms_wait_for_puback
                     elif m.qos == 2:
-                        m.state = mqtt_ms_wait_pubrec
+                        m.state = mqtt_ms_wait_for_pubrec
                     rc = self._send_publish(m.mid, m.topic, m.payload, m.qos, m.retain, m.dup)
                     if rc != 0:
                         return rc