Skip to content
Snippets Groups Projects
Commit dbb5f381 authored by Ellis Percival's avatar Ellis Percival
Browse files

Merge branch 'develop' into feature/tls

parents 87a10b83 f46dd914
No related branches found
No related tags found
Loading
...@@ -527,8 +527,11 @@ if __name__ == "__main__": ...@@ -527,8 +527,11 @@ if __name__ == "__main__":
client.publish( client.publish(
"%s/%s" % (topic_prefix, config["mqtt"]["status_topic"]), "%s/%s" % (topic_prefix, config["mqtt"]["status_topic"]),
config["mqtt"]["status_payload_stopped"], qos=1, retain=True) config["mqtt"]["status_payload_stopped"], qos=1, retain=True)
# This should also quit the mqtt loop thread.
client.loop_stop()
client.disconnect() client.disconnect()
client.loop_forever()
for name, gpio in GPIO_MODULES.items(): for name, gpio in GPIO_MODULES.items():
if not GPIO_CONFIGS[name]["cleanup"]: if not GPIO_CONFIGS[name]["cleanup"]:
_LOG.info("Cleanup disabled for module %r.", name) _LOG.info("Cleanup disabled for module %r.", name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment