Skip to content

Commit

Permalink
Merge pull request #113 from mudcrab2142/master
Browse files Browse the repository at this point in the history
Fix enqueuing unreliable packets with disabled flow control
  • Loading branch information
lidgren authored Jan 24, 2019
2 parents f9a56e4 + c04204d commit d3458db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lidgren.Network/NetUnreliableSenderChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal NetUnreliableSenderChannel(NetConnection connection, int windowSize, Ne
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;
Expand Down

0 comments on commit d3458db

Please sign in to comment.