mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-01 23:35:27 +00:00
Fix incorrect error message on STUN receive timeout
This commit is contained in:
parent
218c0d7385
commit
ef59e2858b
@ -112,7 +112,7 @@ bool getExternalAddressPortIP4(int proto, unsigned short localPort, PSOCKADDR_IN
|
||||
timeout = 1;
|
||||
}
|
||||
|
||||
bytesRead = SOCKET_ERROR;
|
||||
bytesRead = 0;
|
||||
for (i = 0; i < tries; i++) {
|
||||
// Retransmit the request every second until the timeout elapses
|
||||
if (send(sock, (char *)&reqMsg, sizeof(reqMsg), 0) == SOCKET_ERROR) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user