mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
fix bug with endless running
This commit is contained in:
@@ -190,10 +190,10 @@ class HomeAssistant(object):
|
|||||||
_LOGGER.info("Starting Home Assistant core loop")
|
_LOGGER.info("Starting Home Assistant core loop")
|
||||||
self.loop.run_forever()
|
self.loop.run_forever()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
|
||||||
finally:
|
|
||||||
self.loop.call_soon(stop_homeassistant)
|
self.loop.call_soon(stop_homeassistant)
|
||||||
self.loop.run_forever()
|
self.loop.run_forever()
|
||||||
|
finally:
|
||||||
|
self.loop.close()
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_start(self):
|
def async_start(self):
|
||||||
|
Reference in New Issue
Block a user