1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 23:26:32 +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

@@ -268,7 +268,7 @@ namespace Lidgren.Network
if (channel != null)
{
channel.SendQueuedMessages(now);
if (channel.QueuedSendsCount > 0)
if (channel.NeedToSendMessages())
m_peer.m_needFlushSendQueue = true; // failed to send all queued sends; likely a full window - need to try again
}
NetException.Assert(m_sendBufferWritePtr < 1 || m_sendBufferNumMessages > 0);