Async producer stop() fix
This commit is contained in:
@@ -210,5 +210,5 @@ class Producer(object):
|
|||||||
self.queue.put((STOP_ASYNC_PRODUCER, None, None))
|
self.queue.put((STOP_ASYNC_PRODUCER, None, None))
|
||||||
self.thread.join(timeout)
|
self.thread.join(timeout)
|
||||||
|
|
||||||
if self.thread.is_alive():
|
if self.thread.is_alive():
|
||||||
self.thread_stop_event.set()
|
self.thread_stop_event.set()
|
||||||
|
|||||||
Reference in New Issue
Block a user