mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 01:34:05 +00:00
Code cleanup: use stdbool.h
This commit is contained in:
1 parent
e9ee868da4
commit
5f9f7ce407
27 files changed
+286
-299
No files matched your search
+2
-2
@@ -104,12 +104,12 @@ int LiFindExternalAddressIP4(const char* stunServer, unsigned short stunPort, un
|
||||
|
||||
// Wait UDP_RECV_POLL_TIMEOUT_MS before moving on to the next server to
|
||||
// avoid having to spam the other STUN servers if we find a working one.
|
||||
bytesRead = recvUdpSocket(sock, resp.buf, sizeof(resp.buf), 1);
|
||||
bytesRead = recvUdpSocket(sock, resp.buf, sizeof(resp.buf), true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// This waits in UDP_RECV_POLL_TIMEOUT_MS increments
|
||||
bytesRead = recvUdpSocket(sock, resp.buf, sizeof(resp.buf), 1);
|
||||
bytesRead = recvUdpSocket(sock, resp.buf, sizeof(resp.buf), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user