From 38ab46aa3de3a02843d119214d66f0473d38e8cb Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Thu, 6 Jun 2024 23:14:25 +0200 Subject: [PATCH] Shutdown on signal. --- thermostat.py | 2 ++ 1 file changed, 2 insertions(+) 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 ======")