mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-17 20:58:07 +02:00
Reduce udp polling time
This commit is contained in:
parent
f9050fa5fa
commit
39ad8c7da1
@ -184,7 +184,7 @@ void CServerHandler::threadPoll()
|
||||
ENetEvent event;
|
||||
while(true)
|
||||
{
|
||||
if(enet_host_service(enetClient, &event, 10) > 0)
|
||||
if(enet_host_service(enetClient, &event, 2) > 0)
|
||||
{
|
||||
switch(event.type)
|
||||
{
|
||||
|
@ -321,7 +321,7 @@ void CVCMIServer::startAsyncAccept()
|
||||
ENetEvent event;
|
||||
while(state != EServerState::SHUTDOWN)
|
||||
{
|
||||
if(enet_host_service(server, &event, 10) > 0)
|
||||
if(enet_host_service(server, &event, 2) > 0)
|
||||
{
|
||||
switch(event.type)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user