From 6f5b41efa70b7529d723fbac589c87c00765ca53 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 4 Oct 2016 22:45:00 +0200 Subject: [PATCH] fix bug with endless running --- homeassistant/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index a4c27023818..51e0c1b6d69 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -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):