mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-11-30 09:55:40 +00:00
Fix connection not terminating on server exit for Linux native builds
This commit is contained in:
1 parent
8a7d63e175
commit
8ecce6f53e
1 file changed
+3
-1
@@ -76,8 +76,10 @@ void UDPRcv() {
|
|||||||
#endif
|
#endif
|
||||||
ZeroMemory(&FromServer, clientLength);
|
ZeroMemory(&FromServer, clientLength);
|
||||||
static thread_local std::array<char, 10240> Ret {};
|
static thread_local std::array<char, 10240> Ret {};
|
||||||
if (UDPSock == -1)
|
if (UDPSock == -1) {
|
||||||
|
debug("UDPSock == -1");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
int32_t Rcv = recvfrom(UDPSock, Ret.data(), Ret.size() - 1, 0, (sockaddr*)&FromServer, &clientLength);
|
int32_t Rcv = recvfrom(UDPSock, Ret.data(), Ret.size() - 1, 0, (sockaddr*)&FromServer, &clientLength);
|
||||||
if (Rcv == SOCKET_ERROR)
|
if (Rcv == SOCKET_ERROR)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user