summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2022-08-29 09:17:53 -0700
committerGitHub <noreply@github.com>2022-08-29 09:17:53 -0700
commit507a6dcaa5471ea395964e3166d402799f3db2fe (patch)
tree62817b1d7816a89ed1c2a199c754d7de7a29b351
parente0200b797bb9ea1cdb744f371c3de09f72558343 (diff)
parentb044eaa6a751d9354f1c05305be902a17c7da97c (diff)
Merge pull request #1090 from Nordix/subscribe-oom-error
Copy OOM errors to redisAsyncContext when finding subscribe callback
-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;
}