Bugfix async log handle re-close bug ()

* Bugfix async log handle re-close bug

* Check on running thread on async_close

* Fix now on right place
This commit is contained in:
Pascal Vizeli 2016-12-22 16:08:01 +01:00 committed by pvizeli
parent f18a88c2d4
commit 9bf4a53fbb

View file

@ -55,7 +55,9 @@ class AsyncHandler(object):
When blocking=True, will wait till closed. When blocking=True, will wait till closed.
""" """
self.close() if not self._thread.is_alive():
return
yield from self._queue.put(None)
if blocking: if blocking:
# Python 3.4.4+ # Python 3.4.4+