Permalink
Browse files

Make sure connection count is decremented as we are disposing connect…

…ions from pool.

Remove unused var.
  • Loading branch information...
1 parent d5b666b commit 33d64b4138d0483b1f60d4a7e8c5e0d18465acf1 @edevil edevil committed Aug 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pycassa/pool.py
View
@@ -585,10 +585,10 @@ def dispose(self):
conn = self._q.get(False)
conn._dispose_wrapper(
reason="Pool %s is being disposed" % id(self))
+ self._decrement_overflow()
except Queue.Empty:
break
- self._overflow = 0 - self.size()
self._notify_on_pool_dispose()
def size(self):

0 comments on commit 33d64b4

Please sign in to comment.