summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2011-03-14 15:15:54 -0700
committerAndy McCurdy <andy@andymccurdy.com>2011-03-14 15:15:54 -0700
commit229fb8681b7f4224db591308e28d31e0e1845c72 (patch)
treef9db6f1b432e2f9f3dc7c3f6c70a4d18e42abdc1
parent359de6bb7be954cb0a450822eb58edb47092b058 (diff)
downloadredis-py-229fb8681b7f4224db591308e28d31e0e1845c72.tar.gz
Always clear the subscription status of the client after a disconnect. Fixes #46
-rw-r--r--redis/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 57ea0f0..b634292 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -287,6 +287,7 @@ class Redis(threading.local):
connection object calls this method to authenticate and select
the appropriate database.
"""
+ self.subscribed = False
if self.connection.password:
if not self.execute_command('AUTH', self.connection.password):
raise AuthenticationError("Invalid Password")