mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-31 00:26:48 +00:00
connecthostport.c: code simplification
This commit is contained in:
parent
4912dc37e3
commit
b725f5114f
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user