fix bug with endless running

This commit is contained in:
Pascal Vizeli
2016-10-04 22:45:00 +02:00
parent 0af05d178b
commit 6f5b41efa7

View File

@@ -190,10 +190,10 @@ class HomeAssistant(object):
_LOGGER.info("Starting Home Assistant core loop")
self.loop.run_forever()
except KeyboardInterrupt:
pass
finally:
self.loop.call_soon(stop_homeassistant)
self.loop.run_forever()
finally:
self.loop.close()
@asyncio.coroutine
def async_start(self):