mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 03:51:12 +02:00
Better handling of second KeyboardInterrupt
Now the second KeyboardInterrupt will be cleanly handled by the parent process.
This commit is contained in:
@@ -258,7 +258,10 @@ def run_hass_process(hass_proc):
|
||||
hass_proc.join()
|
||||
except KeyboardInterrupt:
|
||||
request_stop()
|
||||
hass_proc.join()
|
||||
try:
|
||||
hass_proc.join()
|
||||
except KeyboardInterrupt:
|
||||
return False
|
||||
return not requested_stop.isSet() and hass_proc.exitcode > 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user