mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
fix sigterm crash
This commit is contained in:
parent
614034d196
commit
564e328698
@ -243,8 +243,8 @@ def run_hass_process(hass_proc):
|
||||
requested_stop = threading.Event()
|
||||
hass_proc.daemon = True
|
||||
|
||||
def request_stop():
|
||||
""" request hass stop """
|
||||
def request_stop(*args):
|
||||
""" request hass stop, *args is for signal handler callback """
|
||||
requested_stop.set()
|
||||
hass_proc.terminate()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user