kopia lustrzana https://gitlab.com/eliggett/wfview
Tuning lost packets
rodzic
30d5858663
commit
dd9be7c99c
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue