1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +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

@@ -32,6 +32,9 @@ namespace Lidgren.Network
public void Disconnect(NetConnection connection, string byeMessage)
{
if (connection == null)
throw new ArgumentNullException("connection");
connection.Disconnect(byeMessage);
}
}