1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 15:16:33 +09:00

Merge pull request #113 from mudcrab2142/master

Fix enqueuing unreliable packets with disabled flow control
This commit is contained in:
Michael Lidgren
2019-01-24 23:35:52 +01:00
committed by GitHub

View File

@@ -35,7 +35,7 @@ namespace Lidgren.Network
internal override int GetAllowedSends()
{
if (!m_doFlowControl)
return 2; // always allowed to send without flow control!
return int.MaxValue; // always allowed to send without flow control!
int retval = m_windowSize - ((m_sendStart + NetConstants.NumSequenceNumbers) - m_windowStart) % m_windowSize;
NetException.Assert(retval >= 0 && retval <= m_windowSize);
return retval;