Shutdown on signal.
This commit is contained in:
parent
5a9a53ec2f
commit
38ab46aa3d
@ -385,4 +385,6 @@ def thermostat_loop():
|
|||||||
t1 = Thread(target=thermostat_loop)
|
t1 = Thread(target=thermostat_loop)
|
||||||
t1.daemon = True
|
t1.daemon = True
|
||||||
t1.start()
|
t1.start()
|
||||||
|
|
||||||
|
dbconn.close()
|
||||||
logging.info("====== Ended successfully ======")
|
logging.info("====== Ended successfully ======")
|
||||||
|
Loading…
Reference in New Issue
Block a user