Skip to content

Commit

Permalink
Async producer stop() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vshlapakov committed Feb 26, 2015
1 parent aedbbb3 commit 5137163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kafka/producer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@ def stop(self, timeout=1):
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()

0 comments on commit 5137163

Please sign in to comment.