summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
authorKonstantin Merenkov <kmerenkov@gmail.com>2010-03-31 16:15:08 +0400
committerKonstantin Merenkov <kmerenkov@gmail.com>2010-03-31 16:15:08 +0400
commit4b709863dae0f0f7bf53d3a02aa08050c0d5bc31 (patch)
tree9ec357576ad84f9fa98913ec82a677b3b774e391 /redis/client.py
parent83479eec9381c4a65518f927acd09385be29b70a (diff)
downloadredis-py-4b709863dae0f0f7bf53d3a02aa08050c0d5bc31.tar.gz
Prevent crash when using pipelines (added self.subscribed to __init__)
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index a1cdc81..38df7ac 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1043,6 +1043,7 @@ class Pipeline(Redis):
self.connection = connection
self.encoding = charset
self.errors = errors
+ self.subscribed = False # NOTE not in use, but necessary
self.reset()
def reset(self):