1
0
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:
lidgren
2010-07-26 07:48:10 +00:00
parent bbeb7dfb2a
commit 494cc7acee
5 changed files with 49 additions and 1 deletions

View File

@@ -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?");