mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Don't bother doing any connection testing if no ports were specified
This commit is contained in:
parent
b59007cdea
commit
f2c1d03d8e
@ -89,6 +89,11 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
|
|||||||
testPortFlags &= VALID_PORT_FLAG_MASK;
|
testPortFlags &= VALID_PORT_FLAG_MASK;
|
||||||
failingPortFlags = testPortFlags;
|
failingPortFlags = testPortFlags;
|
||||||
|
|
||||||
|
// If no ports were specified, just return 0
|
||||||
|
if (testPortFlags == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize sockets array to -1
|
// Initialize sockets array to -1
|
||||||
memset(sockets, 0xFF, sizeof(sockets));
|
memset(sockets, 0xFF, sizeof(sockets));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user