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 /net.c | |
parent | 89c6927282911372d972b952dd0dcece35b03946 (diff) |
Wait with setting CONNECTED until there is an fd
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -137,6 +137,7 @@ int redisContextConnectTcp(redisContext *c, const char *addr, int port) { } c->fd = s; + c->flags |= REDIS_CONNECTED; return REDIS_OK; } @@ -163,5 +164,6 @@ int redisContextConnectUnix(redisContext *c, const char *path) { } c->fd = s; + c->flags |= REDIS_CONNECTED; return REDIS_OK; } |