mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Better handling of second KeyboardInterrupt
Now the second KeyboardInterrupt will be cleanly handled by the parent process.
This commit is contained in:
parent
b596fa33d6
commit
519abbbfa2
@ -258,7 +258,10 @@ def run_hass_process(hass_proc):
|
||||
hass_proc.join()
|
||||
except KeyboardInterrupt:
|
||||
request_stop()
|
||||
try:
|
||||
hass_proc.join()
|
||||
except KeyboardInterrupt:
|
||||
return False
|
||||
return not requested_stop.isSet() and hass_proc.exitcode > 0
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user