diff --git a/libraries/networking/src/udt/SendQueue.cpp b/libraries/networking/src/udt/SendQueue.cpp index d7e3bb2b65..01175d0a94 100644 --- a/libraries/networking/src/udt/SendQueue.cpp +++ b/libraries/networking/src/udt/SendQueue.cpp @@ -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