Async producer stop() fix

This commit is contained in:
Viktor Shlapakov
2015-02-26 13:33:40 +03:00
parent aedbbb39be
commit 5137163fa4

View File

@@ -210,5 +210,5 @@ class Producer(object):
self.queue.put((STOP_ASYNC_PRODUCER, None, None))
self.thread.join(timeout)
if self.thread.is_alive():
self.thread_stop_event.set()
if self.thread.is_alive():
self.thread_stop_event.set()