You've already forked lidgren-network-gen3
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:
@@ -32,6 +32,9 @@ namespace Lidgren.Network
|
||||
|
||||
public void Disconnect(NetConnection connection, string byeMessage)
|
||||
{
|
||||
if (connection == null)
|
||||
throw new ArgumentNullException("connection");
|
||||
|
||||
connection.Disconnect(byeMessage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user