You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 15:46:33 +09:00
NetClient now checks for handshakes in progress when calling Connect
This commit is contained in:
@@ -90,6 +90,16 @@ namespace Lidgren.Network
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lock (m_handshakes)
|
||||||
|
{
|
||||||
|
if (m_handshakes.Count > 0)
|
||||||
|
{
|
||||||
|
LogWarning("Connect attempt failed; Handshake already in progress");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return base.Connect(remoteEndPoint, hailMessage);
|
return base.Connect(remoteEndPoint, hailMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user