Skip to content

Commit

Permalink
Not consuming responses for subscribe commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmerenkov committed Mar 31, 2010
1 parent 7b1f196 commit b33a6fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,15 @@ def _execute_command(self, command_name, command, **options):
"UNSUBSCRIBE while channels are open")
try:
self.connection.send(command, self)
response = self.parse_response(command_name, **options)
if subscription_command:
return None
return response
return self.parse_response(command_name, **options)
except ConnectionError:
self.connection.disconnect()
self.connection.send(command, self)
response = self.parse_response(command_name, **options)
if subscription_command:
return None
return response
return self.parse_response(command_name, **options)

def execute_command(self, *args, **options):
"Sends the command to the redis server and returns it's response"
Expand Down

0 comments on commit b33a6fc

Please sign in to comment.