Correction on udp client timeouts

parent 84e04790
......@@ -145,7 +145,7 @@ void UDPClient::networkLoop()
recieveData(discoverSocket, &address);
}
if(discoverSocket != ENET_SOCKET_NULL)
if(dataSocket != ENET_SOCKET_NULL)
{
recieveData(dataSocket, &address);
}
......
......@@ -21,7 +21,7 @@ const long long MESSAGE_THREAD_SLEEP = 50;
const long long DISCOVER_DEFAULT_TIMEOUT = 5000;
const long long DISCOVER_SELECT_TIMEOUT = 1000;
const long long BROADCAST_SERVER_THREAD_SLEEP = 50;
const long long UDP_CLIENT_THREAD_SLEEP = 50;
const long long UDP_CLIENT_THREAD_SLEEP = 30;
const size_t MAXIMUM_CLIENTS_COUNT = 64;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment