1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-17 07:36:32 +09:00

Fix for unreliable sequenced channels. If you sent too many messages rapidly that get dropped along the wire messages would stop being enqueued.

This commit is contained in:
lidgren
2014-05-31 17:05:42 +00:00
parent fbddaf8962
commit 1de702e5ff
2 changed files with 2 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ namespace Lidgren.Network
internal override NetSendResult Enqueue(NetOutgoingMessage message)
{
int queueLen = m_queuedSends.Count + 1;
int left = m_windowSize - ((m_sendStart + NetConstants.NumSequenceNumbers) - m_windowStart) % NetConstants.NumSequenceNumbers;
int left = GetAllowedSends();
if (queueLen > left)
return NetSendResult.Dropped;