Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6c8b9c

Browse files
committed
Use redis_sock_connect on connect
1 parent dcb95a3 commit f6c8b9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ redis_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
599599
}
600600
}
601601

602-
if (redis_sock_server_open(redis->sock) < 0) {
602+
if (redis_sock_connect(redis->sock) != SUCCESS) {
603603
if (redis->sock->err) {
604604
REDIS_THROW_EXCEPTION(ZSTR_VAL(redis->sock->err), 0);
605605
}

0 commit comments

Comments
 (0)