connecthostport.c: code simplification
This commit is contained in:
parent
4912dc37e3
commit
b725f5114f
|
@ -260,15 +260,9 @@ SOCKET connecthostport(const char * host, unsigned short port,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* #ifdef MINIUPNPC_IGNORE_EINTR */
|
#endif /* #ifdef MINIUPNPC_IGNORE_EINTR */
|
||||||
if(n < 0)
|
if(n >= 0) /* connect() was successful */
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
freeaddrinfo(ai);
|
freeaddrinfo(ai);
|
||||||
if(ISINVALID(s))
|
if(ISINVALID(s))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue