umqtt.simple: Return op from wait_msg() as indication of reception.

Fixes issue #328.
pull/551/head
Meir Armon 2022-09-06 21:37:13 +03:00 zatwierdzone przez Damien George
rodzic 9bc0b15f11
commit b50d3462d7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -206,6 +206,7 @@ class MQTTClient:
self.sock.write(pkt)
elif op & 6 == 4:
assert 0
return op
# Checks whether a pending message from server is available.
# If not, returns immediately with None. Otherwise, does