mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-11-26 07:46:54 +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
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user