Bugfix async log handle re-close bug (#5034)
* Bugfix async log handle re-close bug * Check on running thread on async_close * Fix now on right place
This commit is contained in:
parent
f18a88c2d4
commit
9bf4a53fbb
1 changed files with 3 additions and 1 deletions
|
@ -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+
|
||||||
|
|
Loading…
Add table
Reference in a new issue