mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +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() {
|
||||
std::unique_lock<std::mutex> naksLocker(_naksLock);
|
||||
|
||||
// the following while makes sure that we find a packet to re-send, if there is one
|
||||
while (true) {
|
||||
std::unique_lock<std::mutex> naksLocker(_naksLock);
|
||||
|
||||
if (_naks.getLength() > 0) {
|
||||
// pull the sequence number we need to re-send
|
||||
|
|
Loading…
Reference in a new issue