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

Now sets NeedFlushSendQueue whenever a stored message exists in any channel

This commit is contained in:
Michael Lidgren
2015-09-25 10:20:12 +02:00
parent c42b885e1f
commit 2f0477e6bf
3 changed files with 16 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ namespace Lidgren.Network
internal int QueuedSendsCount { get { return m_queuedSends.Count; } }
internal virtual bool NeedToSendMessages() { return m_queuedSends.Count > 0; }
public int GetFreeWindowSlots()
{
return GetAllowedSends() - m_queuedSends.Count;