You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 23:26:32 +09:00
Documentation updated; NetSendResult fixed when using AutoFlushSendQueue false
This commit is contained in:
Binary file not shown.
@@ -304,7 +304,10 @@ namespace Lidgren.Network
|
|||||||
if (msg.GetEncodedSize() > m_currentMTU)
|
if (msg.GetEncodedSize() > m_currentMTU)
|
||||||
throw new NetException("Message too large! Fragmentation failure?");
|
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
|
// may be on user thread
|
||||||
|
|||||||
Reference in New Issue
Block a user