diff options
| author | Andy McCurdy <andy@andymccurdy.com> | 2011-03-14 15:15:54 -0700 |
|---|---|---|
| committer | Andy McCurdy <andy@andymccurdy.com> | 2011-03-14 15:15:54 -0700 |
| commit | 229fb8681b7f4224db591308e28d31e0e1845c72 (patch) | |
| tree | f9db6f1b432e2f9f3dc7c3f6c70a4d18e42abdc1 | |
| parent | 359de6bb7be954cb0a450822eb58edb47092b058 (diff) | |
| download | redis-py-229fb8681b7f4224db591308e28d31e0e1845c72.tar.gz | |
Always clear the subscription status of the client after a disconnect. Fixes #46
| -rw-r--r-- | redis/client.py | 1 |
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") |
