Permalink
Browse files

Don't return closed connections to the pool

  • Loading branch information...
1 parent fb2c04a commit 71ed5b946f169a8f5ed3264d9a0a03094faed46a @thobbs thobbs committed Jan 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pycassa/pool.py
View
2 pycassa/pool.py
@@ -576,7 +576,7 @@ def execute(self, f, *args, **kwargs):
conn = self.get()
return getattr(conn, f)(*args, **kwargs)
finally:
- if conn:
+ if conn and conn.transport.isOpen():
self.put(conn)
def dispose(self):

0 comments on commit 71ed5b9

Please sign in to comment.