mirror of
https://github.com/home-assistant/core
synced 2024-07-30 21:18:57 +02:00
Merge pull request #1168 from persandstrom/sigterm_handler
fix sigterm crash
This commit is contained in:
commit
d867d26612
@ -256,8 +256,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…
Reference in New Issue
Block a user