summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hiredis.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hiredis.c b/hiredis.c
index 4487134..7eaa991 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -790,9 +790,7 @@ redisContext *redisConnectWithOptions(const redisOptions *options) {
// Unknown type - FIXME - FREE
return NULL;
}
- if (options->timeout != NULL && (c->flags & REDIS_BLOCK) && c->fd != REDIS_INVALID_FD) {
- redisContextSetTimeout(c, *options->timeout);
- }
+
return c;
}