Fix connection not terminating on server exit for Linux native builds

This commit is contained in:
Quackise committed 2026-10-24 19:50:32 +02:00
1 parent 8a7d63e175
commit 8ecce6f53e
1 file changed
+3 -1
+3 -1
View File
@@ -76,8 +76,10 @@ void UDPRcv() {
#endif
ZeroMemory(&FromServer, clientLength);
static thread_local std::array<char, 10240> Ret {};
if (UDPSock == -1)
if (UDPSock == -1) {
debug("UDPSock == -1");
return;
}
int32_t Rcv = recvfrom(UDPSock, Ret.data(), Ret.size() - 1, 0, (sockaddr*)&FromServer, &clientLength);
if (Rcv == SOCKET_ERROR)
return;