summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {