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

Documentation updated; NetSendResult fixed when using AutoFlushSendQueue false

This commit is contained in:
lidgren
2011-09-12 09:49:33 +00:00
parent 60a6b28189
commit c1d604bde4
2 changed files with 4 additions and 1 deletions

View File

@@ -304,7 +304,10 @@ namespace Lidgren.Network
if (msg.GetEncodedSize() > m_currentMTU)
throw new NetException("Message too large! Fragmentation failure?");
return chan.Enqueue(msg);
var retval = chan.Enqueue(msg);
if (retval == NetSendResult.Sent && m_peerConfiguration.m_autoFlushSendQueue == false)
retval = NetSendResult.Queued; // queued since we're not autoflushing
return retval;
}
// may be on user thread