Fix a typo in b6a052f.
This commit is contained in:
parent
b6a052fe09
commit
6de326e872
2
net.c
2
net.c
@ -236,7 +236,7 @@ int redisContextSetTcpUserTimeout(redisContext *c, unsigned int timeout) {
|
|||||||
res = -1;
|
res = -1;
|
||||||
(void)timeout;
|
(void)timeout;
|
||||||
#endif
|
#endif
|
||||||
if (res == -1); {
|
if (res == -1) {
|
||||||
__redisSetErrorFromErrno(c,REDIS_ERR_IO,"setsockopt(TCP_USER_TIMEOUT)");
|
__redisSetErrorFromErrno(c,REDIS_ERR_IO,"setsockopt(TCP_USER_TIMEOUT)");
|
||||||
redisNetClose(c);
|
redisNetClose(c);
|
||||||
return REDIS_ERR;
|
return REDIS_ERR;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user