From 83bba659b9dbd6c77baf2ff27ff6342317869a3e Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Thu, 21 May 2020 11:12:18 -0700 Subject: Add logic to handle RESP3 push messages (#819) Fixes #815 --- async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'async.c') 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; -- cgit v1.2.3