mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-01 18:24:00 +00:00
Restore the 500 ms ping logic to prevent warnings in the server-side logs
This commit is contained in:
1 parent
2fdcfb9429
commit
ae00c09cb6
2 files changed
+2
-14
No files matched your search
+1
-7
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-7
@@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user