kopia lustrzana https://gitlab.com/eliggett/wfview
Minor fix to retransmit handling
rodzic
e00b598fd9
commit
317cbd640a
|
@ -1235,6 +1235,11 @@ void udpBase::sendRetransmitRequest()
|
|||
while (i != rxSeqBuf.keys().end())
|
||||
{
|
||||
quint16 j = 1 + *i;
|
||||
++i;
|
||||
if (i == rxSeqBuf.keys().end())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
auto s = rxMissing.find(j);
|
||||
if (s == rxMissing.end())
|
||||
|
@ -1260,7 +1265,6 @@ void udpBase::sendRetransmitRequest()
|
|||
s = rxMissing.erase(s);
|
||||
}
|
||||
}
|
||||
++i;
|
||||
}
|
||||
missingMutex.unlock();
|
||||
}
|
||||
|
|
|
@ -1589,7 +1589,11 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
|
|||
while (i != c->rxSeqBuf.keys().end())
|
||||
{
|
||||
quint16 j = 1 + *i;
|
||||
|
||||
++i;
|
||||
if (i == c->rxSeqBuf.keys().end())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (c->rxSeqBuf.lastKey() - c->rxSeqBuf.firstKey() - c->rxSeqBuf.size() == 0 && c->type == "AUDIO" &&
|
||||
(c->txCodec == 0x40 || c->txCodec == 0x80))
|
||||
{
|
||||
|
@ -1621,7 +1625,6 @@ void udpServer::sendRetransmitRequest(CLIENT* c)
|
|||
s = c->rxMissing.erase(s);
|
||||
}
|
||||
}
|
||||
++i;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue