Skip to content

Commit

Permalink
Merge pull request pycassa#213 from edevil/MissingDec
Browse files Browse the repository at this point in the history
Make sure connection count is decremented as we are disposing connection...
  • Loading branch information
thobbs committed Aug 5, 2013
2 parents d5b666b + 33d64b4 commit 6ea16a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycassa/pool.py
Expand Up @@ -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):
Expand Down

0 comments on commit 6ea16a0

Please sign in to comment.