Skip to content

Commit

Permalink
Fix logic around reading more push messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gerzse committed Jun 12, 2024
1 parent a9dabf9 commit 6f9f786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis/_parsers/resp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def handle_push_response(self, response, disable_decoding, push_request):
res = self.invalidation_push_handler_func(response)
else:
res = self.pubsub_push_handler_func(response)
if not push_request:
if push_request:
return self._read_response(
disable_decoding=disable_decoding, push_request=push_request
)
Expand Down Expand Up @@ -276,7 +276,7 @@ async def handle_push_response(self, response, disable_decoding, push_request):
res = self.invalidation_push_handler_func(response)
else:
res = self.pubsub_push_handler_func(response)
if not push_request:
if push_request:
return await self._read_response(
disable_decoding=disable_decoding, push_request=push_request
)
Expand Down

0 comments on commit 6f9f786

Please sign in to comment.