diff --git a/thermostat.py b/thermostat.py index 9ca617b..d861347 100644 --- a/thermostat.py +++ b/thermostat.py @@ -385,4 +385,6 @@ def thermostat_loop(): t1 = Thread(target=thermostat_loop) t1.daemon = True t1.start() + +dbconn.close() logging.info("====== Ended successfully ======")