Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
stop the worker loop first, then disconnect the zk client
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Sep 11, 2012
1 parent 6104a09 commit 28a532e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdo/worker.py
Expand Up @@ -267,10 +267,10 @@ def wait(self, waited=1):

def stop(self):
"""Stop the worker loop. Used in an `atexit` hook."""
self.shutdown = True
if self.zk_client is not None:
self.partitioner.finish()
self.zk_client.stop()
self.shutdown = True


def run(settings):
Expand Down

0 comments on commit 28a532e

Please sign in to comment.