connecthostport.c: code simplification

This commit is contained in:
Thomas Bernard 2019-03-10 19:23:58 +01:00
parent 4912dc37e3
commit b725f5114f
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 1 additions and 7 deletions

View File

@ -260,14 +260,8 @@ SOCKET connecthostport(const char * host, unsigned short port,
}
}
#endif /* #ifdef MINIUPNPC_IGNORE_EINTR */
if(n < 0)
{
continue;
}
else
{
if(n >= 0) /* connect() was successful */
break;
}
}
freeaddrinfo(ai);
if(ISINVALID(s))