Tuning lost packets

merge-requests/9/merge
Phil Taylor 2022-01-28 09:52:26 +00:00
rodzic 30d5858663
commit dd9be7c99c
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -15,7 +15,7 @@
#define LOCK_PERIOD 10 // How long to try to lock mutex (ms)
#define STALE_CONNECTION 15 // Not heard from in this many seconds
#define BUFSIZE 500 // Number of packets to buffer
#define MAX_MISSING 400 // Make the maximum number of possible missing packets less than total buffer size!
#define MAX_MISSING 100 // Make the maximum number of possible missing packets much less than total buffer size!
#define TXAUDIO_PERIOD 20

Wyświetl plik

@ -1709,7 +1709,7 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
{
for (auto it = c->rxMissing.begin(); it != c->rxMissing.end(); ++it)
{
if (it.value() < 4)
if (&it != Q_NULLPTR && it.value() < 4)
{
missingSeqs.append(it.key() & 0xff);
missingSeqs.append(it.key() >> 8 & 0xff);