Add optional diabling of file rotation and UDP socket bug fixing.

This commit is contained in:
Jonathan Naylor 2020-11-01 12:28:12 +00:00
parent c9c7705628
commit 81170f53ee
26 changed files with 196 additions and 22 deletions

View file

@ -289,6 +289,12 @@ int CUDPSocket::read(unsigned char* buffer, unsigned int length, sockaddr_storag
LogError("Error returned from recvfrom, err: %lu", ::GetLastError());
#else
LogError("Error returned from recvfrom, err: %d", errno);
if (len == -1 && errno == ENOTSOCK) {
LogMessage("Re-opening UDP port on %u", m_port);
close();
open();
}
#endif
return -1;
}