Permalink
Browse files

blocking client now cleans up after itself

  • Loading branch information...
1 parent 63a8006 commit f965bc24883b7c8d6dbd41c5cf29059189c46c0f @eggspurt eggspurt committed Aug 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 momoko/clients.py
View
3 momoko/clients.py
@@ -26,6 +26,9 @@ class BlockingClient(object):
def __init__(self, settings):
self._pool = BlockingPool(**settings)
+ def __del__(self):
+ self._pool.close()
+
@property
@contextmanager
def connection(self):

0 comments on commit f965bc2

Please sign in to comment.