mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:10:15 +02:00
Merge pull request #6039 from birarda/packet-corruption
hold the sent packets lock while re-sending a packet
This commit is contained in:
commit
7caf8755d1
1 changed files with 3 additions and 2 deletions
|
@ -355,11 +355,12 @@ bool SendQueue::maybeResendPacket() {
|
||||||
// we found the packet - grab it
|
// we found the packet - grab it
|
||||||
auto& resendPacket = *(it->second);
|
auto& resendPacket = *(it->second);
|
||||||
|
|
||||||
|
// send it off
|
||||||
|
sendPacket(resendPacket);
|
||||||
|
|
||||||
// unlock the sent packets
|
// unlock the sent packets
|
||||||
sentLocker.unlock();
|
sentLocker.unlock();
|
||||||
|
|
||||||
// send it off
|
|
||||||
sendPacket(resendPacket);
|
|
||||||
emit packetRetransmitted();
|
emit packetRetransmitted();
|
||||||
|
|
||||||
// Signal that we did resend a packet
|
// Signal that we did resend a packet
|
||||||
|
|
Loading…
Reference in a new issue