mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Fix control+c quitting HASS (#6974)
This commit is contained in:
parent
df77529bfe
commit
64174f5763
@ -141,7 +141,8 @@ class HomeAssistant(object):
|
||||
self.loop.run_forever()
|
||||
return self.exit_code
|
||||
except KeyboardInterrupt:
|
||||
fire_coroutine_threadsafe(self.async_stop(), self.loop)
|
||||
self.loop.call_soon_threadsafe(
|
||||
self.loop.create_task, self.async_stop())
|
||||
self.loop.run_forever()
|
||||
finally:
|
||||
self.loop.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user