1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

NetClient.Connect() now prevents new connection if one already exists

This commit is contained in:
lidgren
2010-07-18 12:13:26 +00:00
parent 1a66c6b76c
commit ced71204ac
2 changed files with 15 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ namespace Lidgren.Network
/// <summary>
/// Create a connection to a remote endpoint
/// </summary>
public NetConnection Connect(IPEndPoint remoteEndpoint, NetOutgoingMessage approvalMessage)
public virtual NetConnection Connect(IPEndPoint remoteEndpoint, NetOutgoingMessage approvalMessage)
{
lock (m_connections)
{