1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 10:21:09 +09:00

NetPeer ToString null check added

This commit is contained in:
lidgren
2010-08-07 13:40:31 +00:00
parent 49d2e3e8f8
commit ae5633862d

View File

@@ -419,6 +419,8 @@ namespace Lidgren.Network
public override string ToString()
{
if (m_socket == null)
return "[NetPeer unbound]";
return "[NetPeer bound to " + m_socket.LocalEndPoint + " " + ConnectionsCount + " connections]";
}
}