You've already forked lidgren-network-gen3
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user