From 229fb8681b7f4224db591308e28d31e0e1845c72 Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Mon, 14 Mar 2011 15:15:54 -0700 Subject: Always clear the subscription status of the client after a disconnect. Fixes #46 --- redis/client.py | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v1.2.1