move UpdatePacingTime out of loop

This commit is contained in:
orignal 2024-10-28 08:38:04 -04:00
parent 43939cedf4
commit 0e8d624d86

View File

@ -1276,10 +1276,12 @@ namespace stream
else
m_WindowSize += (m_WindowSize - (1 - PREV_SPEED_KEEP_TIME_COEFF)) / m_WindowSize;
if (m_WindowSize > MAX_WINDOW_SIZE) m_WindowSize = MAX_WINDOW_SIZE;
m_WindowIncCounter --;
UpdatePacingTime ();
m_WindowIncCounter--;
}
else
break;
}
UpdatePacingTime ();
}
if (m_IsNAcked)
ResendPacket ();