From 2635feb0ac36d21d5aaf920c4aa41533c91818ee Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 1 Dec 2010 12:54:47 +0100 Subject: Wait with setting CONNECTED until there is an fd --- hiredis.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hiredis.c') diff --git a/hiredis.c b/hiredis.c index 3ee0d0b..7ae962b 100644 --- a/hiredis.c +++ b/hiredis.c @@ -771,7 +771,6 @@ void redisFree(redisContext *c) { redisContext *redisConnect(const char *ip, int port) { redisContext *c = redisContextInit(); c->flags |= REDIS_BLOCK; - c->flags |= REDIS_CONNECTED; redisContextConnectTcp(c,ip,port); return c; } @@ -779,7 +778,6 @@ redisContext *redisConnect(const char *ip, int port) { redisContext *redisConnectNonBlock(const char *ip, int port) { redisContext *c = redisContextInit(); c->flags &= ~REDIS_BLOCK; - c->flags |= REDIS_CONNECTED; redisContextConnectTcp(c,ip,port); return c; } @@ -787,7 +785,6 @@ redisContext *redisConnectNonBlock(const char *ip, int port) { redisContext *redisConnectUnix(const char *path) { redisContext *c = redisContextInit(); c->flags |= REDIS_BLOCK; - c->flags |= REDIS_CONNECTED; redisContextConnectUnix(c,path); return c; } @@ -795,7 +792,6 @@ redisContext *redisConnectUnix(const char *path) { redisContext *redisConnectUnixNonBlock(const char *path) { redisContext *c = redisContextInit(); c->flags &= ~REDIS_BLOCK; - c->flags |= REDIS_CONNECTED; redisContextConnectUnix(c,path); return c; } -- cgit v1.2.3