fix sigterm crash

pull/1168/head
Per SandstrÃom 2016-02-07 21:05:35 +00:00
parent 614034d196
commit 564e328698
1 changed files with 2 additions and 2 deletions

View File

@ -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()