From b044eaa6a751d9354f1c05305be902a17c7da97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Svensson?= Date: Mon, 29 Aug 2022 13:25:42 +0200 Subject: [PATCH] Copy error to redisAsyncContext when finding subscribe cb --- async.c | 1 + 1 file changed, 1 insertion(+) diff --git a/async.c b/async.c index ae097df0b..d7feba36c 100644 --- a/async.c +++ b/async.c @@ -535,6 +535,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply, return REDIS_OK; oom: __redisSetError(&(ac->c), REDIS_ERR_OOM, "Out of memory"); + __redisAsyncCopyError(ac); return REDIS_ERR; }