mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 22:31:21 +00:00
Don't bother doing any connection testing if no ports were specified
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user