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

Slight modifications to default resend values

Don't respond to ExpandMTUSuccess if AutoExpandMTU is disabled
Locking handshakes collection in Deny() for consistency
This commit is contained in:
lidgren
2014-07-31 12:20:53 +00:00
parent 2e9cc2bff0
commit 85a3b28bbf
2 changed files with 8 additions and 2 deletions

View File

@@ -263,7 +263,8 @@ namespace Lidgren.Network
SendDisconnect(reason, false);
// remove from handshakes
m_peer.m_handshakes.Remove(m_remoteEndPoint); // TODO: make this more thread safe? we're on user thread
lock (m_peer.m_handshakes)
m_peer.m_handshakes.Remove(m_remoteEndPoint);
}
internal void ReceivedHandshake(double now, NetMessageType tp, int ptr, int payloadLength)