mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
don't lock in while for maybeResendPacket
This commit is contained in:
parent
d66375bb09
commit
ac3a1d54b1
1 changed files with 2 additions and 1 deletions
|
@ -459,9 +459,10 @@ bool SendQueue::maybeSendNewPacket() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SendQueue::maybeResendPacket() {
|
bool SendQueue::maybeResendPacket() {
|
||||||
|
std::unique_lock<std::mutex> naksLocker(_naksLock);
|
||||||
|
|
||||||
// the following while makes sure that we find a packet to re-send, if there is one
|
// the following while makes sure that we find a packet to re-send, if there is one
|
||||||
while (true) {
|
while (true) {
|
||||||
std::unique_lock<std::mutex> naksLocker(_naksLock);
|
|
||||||
|
|
||||||
if (_naks.getLength() > 0) {
|
if (_naks.getLength() > 0) {
|
||||||
// pull the sequence number we need to re-send
|
// pull the sequence number we need to re-send
|
||||||
|
|
Loading…
Reference in a new issue