You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 07:36:32 +09:00
Various ArgumentNullExceptions added
This commit is contained in:
@@ -106,6 +106,9 @@ namespace Lidgren.Network
|
||||
/// </summary>
|
||||
public void Recycle(NetIncomingMessage msg)
|
||||
{
|
||||
if (msg == null)
|
||||
throw new ArgumentNullException("msg");
|
||||
|
||||
if (msg.m_status != NetIncomingMessageReleaseStatus.ReleasedToApplication)
|
||||
throw new NetException("Message not under application control; recycled more than once?");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user