diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-01 12:54:47 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-01 12:54:47 +0100 |
commit | 2635feb0ac36d21d5aaf920c4aa41533c91818ee (patch) | |
tree | 68fa1c91ea5c865da7d39039fff07c4f5e558832 /hiredis.c | |
parent | 89c6927282911372d972b952dd0dcece35b03946 (diff) |
Wait with setting CONNECTED until there is an fd
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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; } |