summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net.c b/net.c
index 35b6ad2..d967e5b 100644
--- a/net.c
+++ b/net.c
@@ -141,6 +141,9 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval *
return REDIS_ERR;
}
+ if (redisCheckSocketError(c, fd) != REDIS_OK)
+ return REDIS_ERR;
+
return REDIS_OK;
}