Skip to content

Commit 8468218

Browse files
committed
Fix is_shutdown check when running in executor
1 parent e1af5b3 commit 8468218

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2.0.1
2+
=====
3+
May 28, 2014
4+
5+
Bug Fixes
6+
---------
7+
* Fix check for Cluster.is_shutdown in in @run_in_executor
8+
decorator
9+
110
2.0.0
211
=====
312
May 28, 2014

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def run_in_executor(f):
130130
@wraps(f)
131131
def new_f(self, *args, **kwargs):
132132

133-
if self._is_shutdown:
133+
if self.is_shutdown:
134134
return
135135
try:
136136
future = self.executor.submit(f, self, *args, **kwargs)

0 commit comments

Comments
 (0)