summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2018-03-05 12:17:49 +0200
committerMark Nunberg <mnunberg@haskalah.org>2018-09-25 20:21:40 -0400
commitcbe4ae63aecee40674509a2bf23bc5db067e7f3d (patch)
tree28e437188b572e9df2b5f58cf11245ce86cdbbc4 /async.c
parent5e6bbf8c6075ce6406d424e7ed031c7a6c676fb2 (diff)
Handle connection errors better in blocking mode as well
Diffstat (limited to 'async.c')
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.c b/async.c
index 7309344..0cecd30 100644
--- a/async.c
+++ b/async.c
@@ -508,7 +508,7 @@ void redisProcessCallbacks(redisAsyncContext *ac) {
static int __redisAsyncHandleConnect(redisAsyncContext *ac) {
int completed = 0;
redisContext *c = &(ac->c);
- if (redisFinishAsyncConnect(c, &completed) == REDIS_ERR) {
+ if (redisCheckConnectDone(c, &completed) == REDIS_ERR) {
/* Error! */
redisCheckSocketError(c);
if (ac->onConnect) ac->onConnect(ac, REDIS_ERR);