mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-03 06:16:04 +00:00
Restore the 500 ms ping logic to prevent warnings in the server-side logs
This commit is contained in:
@@ -82,13 +82,7 @@ static void UdpPingThreadProc(void* context) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send less frequently if we've received data from our peer
|
||||
if (receivedDataFromPeer) {
|
||||
PltSleepMsInterruptible(&udpPingThread, 5000);
|
||||
}
|
||||
else {
|
||||
PltSleepMsInterruptible(&udpPingThread, 1000);
|
||||
}
|
||||
PltSleepMsInterruptible(&udpPingThread, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,13 +58,7 @@ static void UdpPingThreadProc(void* context) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send less frequently if we've received data from our peer
|
||||
if (receivedDataFromPeer) {
|
||||
PltSleepMsInterruptible(&udpPingThread, 5000);
|
||||
}
|
||||
else {
|
||||
PltSleepMsInterruptible(&udpPingThread, 500);
|
||||
}
|
||||
PltSleepMsInterruptible(&udpPingThread, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user