Restore the 500 ms ping logic to prevent warnings in the server-side logs

This commit is contained in:
Cameron Gutman 2020-08-08 23:16:55 -07:00
commit ae00c09cb6
2 changed files with 2 additions and 14 deletions

View file

@ -82,13 +82,7 @@ static void UdpPingThreadProc(void* context) {
return; return;
} }
// Send less frequently if we've received data from our peer PltSleepMsInterruptible(&udpPingThread, 500);
if (receivedDataFromPeer) {
PltSleepMsInterruptible(&udpPingThread, 5000);
}
else {
PltSleepMsInterruptible(&udpPingThread, 1000);
}
} }
} }

View file

@ -58,13 +58,7 @@ static void UdpPingThreadProc(void* context) {
return; return;
} }
// Send less frequently if we've received data from our peer PltSleepMsInterruptible(&udpPingThread, 500);
if (receivedDataFromPeer) {
PltSleepMsInterruptible(&udpPingThread, 5000);
}
else {
PltSleepMsInterruptible(&udpPingThread, 500);
}
} }
} }