Remove useless sock check in init functions

'sock' inited with -1 a few lines above, so condition is alwais false
This commit is contained in:
Diadlo 2017-06-10 23:31:45 +03:00
parent cdfce6b977
commit a01712370b
No known key found for this signature in database
GPG key ID: 5AF9F2E29107C727
3 changed files with 0 additions and 7 deletions

View file

@ -135,8 +135,6 @@ int service_redis_init(char *ip, int sp, unsigned char options, char *miscptr, F
char buffer[] = "*1\r\n$4\r\nping\r\n";
hydra_register_socket(sp);
if (sock >= 0)
sock = hydra_disconnect(sock);
if ((options & OPTION_SSL) == 0) {
if (port != 0)
myport = port;