1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 23:26:32 +09:00

added mutex for access to m_handshake everywhere except count requests

This commit is contained in:
Michael Lidgren
2015-01-21 08:52:28 +01:00
parent bc5b0a0f45
commit 4b7b53b36d
4 changed files with 31 additions and 22 deletions

View File

@@ -306,7 +306,8 @@ namespace Lidgren.Network
conn.m_connectRequested = true;
conn.m_connectionInitiator = true;
m_handshakes.Add(remoteEndPoint, conn);
lock(m_handshakes)
m_handshakes.Add(remoteEndPoint, conn);
return conn;
}