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 */
|
||||
if(n < 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(n >= 0) /* connect() was successful */
|
||||
break;
|
||||
}
|
||||
}
|
||||
freeaddrinfo(ai);
|
||||
if(ISINVALID(s))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue