summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Svensson <bjorn.a.svensson@est.tech>2022-08-29 13:25:42 +0200
committerBjörn Svensson <bjorn.a.svensson@est.tech>2022-08-29 13:34:27 +0200
commitb044eaa6a751d9354f1c05305be902a17c7da97c (patch)
tree62817b1d7816a89ed1c2a199c754d7de7a29b351
parente0200b797bb9ea1cdb744f371c3de09f72558343 (diff)
Copy error to redisAsyncContext when finding subscribe cb
-rw-r--r--async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/async.c b/async.c
index ae097df..d7feba3 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;
}