summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-05-21 11:12:18 -0700
committerGitHub <noreply@github.com>2020-05-21 11:12:18 -0700
commit83bba659b9dbd6c77baf2ff27ff6342317869a3e (patch)
treefde9796e555b926aa5822fed02691859b84ee2e8 /async.c
parentc8999c66024b0de347adecb774d14963c08a66db (diff)
Add logic to handle RESP3 push messages (#819)
Fixes #815
Diffstat (limited to 'async.c')
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.c b/async.c
index 6990e86..68a656f 100644
--- a/async.c
+++ b/async.c
@@ -374,7 +374,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
/* Custom reply functions are not supported for pub/sub. This will fail
* very hard when they are used... */
- if (reply->type == REDIS_REPLY_ARRAY) {
+ if (reply->type == REDIS_REPLY_ARRAY || reply->type == REDIS_REPLY_PUSH) {
assert(reply->elements >= 2);
assert(reply->element[0]->type == REDIS_REPLY_STRING);
stype = reply->element[0]->str;