Don't bother doing any connection testing if no ports were specified
This commit is contained in:
parent
b59007cdea
commit
f2c1d03d8e
1 changed files with 5 additions and 0 deletions
|
|
@ -89,6 +89,11 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
|
|||
testPortFlags &= VALID_PORT_FLAG_MASK;
|
||||
failingPortFlags = testPortFlags;
|
||||
|
||||
// If no ports were specified, just return 0
|
||||
if (testPortFlags == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Initialize sockets array to -1
|
||||
memset(sockets, 0xFF, sizeof(sockets));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue