diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index 0a1218f5796..736fee0d1b3 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -55,7 +55,9 @@ class AsyncHandler(object): When blocking=True, will wait till closed. """ - self.close() + if not self._thread.is_alive(): + return + yield from self._queue.put(None) if blocking: # Python 3.4.4+