Browse Source

move UpdatePacingTime out of loop

pull/2118/head
orignal 4 weeks ago
parent
commit
0e8d624d86
  1. 6
      libi2pd/Streaming.cpp

6
libi2pd/Streaming.cpp

@ -1276,10 +1276,12 @@ namespace stream @@ -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 ();

Loading…
Cancel
Save