Merge pull request #6039 from birarda/packet-corruption

hold the sent packets lock while re-sending a packet
This commit is contained in:
Clément Brisset 2015-10-08 19:57:08 -07:00
commit 7caf8755d1

View file

@ -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