mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
maintain sent packets lock while re-sending packet
This commit is contained in:
parent
1cd76bb937
commit
8985427516
1 changed files with 3 additions and 2 deletions
|
@ -355,11 +355,12 @@ bool SendQueue::maybeResendPacket() {
|
|||
// we found the packet - grab it
|
||||
auto& resendPacket = *(it->second);
|
||||
|
||||
// send it off
|
||||
sendPacket(resendPacket);
|
||||
|
||||
// unlock the sent packets
|
||||
sentLocker.unlock();
|
||||
|
||||
// send it off
|
||||
sendPacket(resendPacket);
|
||||
emit packetRetransmitted();
|
||||
|
||||
// Signal that we did resend a packet
|
||||
|
|
Loading…
Reference in a new issue