Permalink
Browse files

Merge pull request #13 from iceone/master

Also stop the pool cleaner when the pool is closed.
  • Loading branch information...
FSX committed Mar 14, 2012
2 parents 27b712e + 858789f commit 7137919e78a59e77c470d5fc4a820bea826494f4
Showing with 2 additions and 0 deletions.
  1. +2 −0 momoko/pools.py
View
@@ -117,6 +117,7 @@ def close(self):
for conn in self._pool:
if not conn.closed:
conn.close()
+ self._cleaner.stop()
self._pool = []
self.closed = True
@@ -269,6 +270,7 @@ def close(self):
for conn in self._pool:
if not conn.closed:
conn.close()
+ self._cleaner.stop()
self._pool = []
self.closed = True

0 comments on commit 7137919

Please sign in to comment.