adafruit / Adafruit_CircuitPython_MiniMQTT

MQTT Client Library for CircuitPython
Other
72 stars 50 forks source link

check is_connected in loop() #174

Closed vladak closed 7 months ago

vladak commented 10 months ago

Someone hit a None-deref when calling loop() without calling connect() first. This change checks the connected status in loop() and raises exception if not connected.