Paho.mqtt.publish.multiple hangs if given an empty list of messages #684
Labels
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
Assuming an MQTT broker is set up on localhost at port 1883, running the following snipping will hang.
I have not been quite able to pinpoint why this happens, it seems likely due to
_on_publish
never being called, and the client is never disconnected.If this is unintentional, I'd suggest adding an else clause to the check for
len(userdata) > 0
in_on_connect
and disconnecting the client there.If this is indeed the intended behavior, could the documentation be made clearer on it?
Thanks!
The text was updated successfully, but these errors were encountered: