Safeguard for subscribing to empty list of topics. #690
Labels
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
I had an issue where I mistakenly called
MqttClient.subscribe()
with an empty list inside theon_connect()
callback, as recommended in the docs. Instead of raising an error, the client disconnects and enters an indefinite reconnect loop.Recommended fix: Assert non-emptiness of list passed to the subscribe method in MqttClient.
The text was updated successfully, but these errors were encountered: