summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorshiyuge <shiyuge@outlook.com>2020-09-23 15:46:20 +0800
committerGitHub <noreply@github.com>2020-09-23 15:46:20 +0800
commit773d6ea8a73de57279a8733aa884bc5710816779 (patch)
tree74be4fedc0278f9f3206b18d1dcb08bab1b12262 /async.c
parent2a5a57b90a57af5142221aa71f38c08f4a737376 (diff)
Copy error to redisAsyncContext on timeout
Diffstat (limited to 'async.c')
-rw-r--r--async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/async.c b/async.c
index 18a4a09..145d949 100644
--- a/async.c
+++ b/async.c
@@ -703,6 +703,7 @@ void redisAsyncHandleTimeout(redisAsyncContext *ac) {
if (!c->err) {
__redisSetError(c, REDIS_ERR_TIMEOUT, "Timeout");
+ __redisAsyncCopyError(ac);
}
if (!(c->flags & REDIS_CONNECTED) && ac->onConnect) {