Skip to content

Commit

Permalink
add volatile again
Browse files Browse the repository at this point in the history
  • Loading branch information
RevenantX committed Dec 2, 2020
1 parent c601ea7 commit f50e751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteNetLib/NetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private struct IncomingData
private readonly Dictionary<IPEndPoint, ConnectionRequest> _requestsDict;
private readonly ReaderWriterLockSlim _peersLock;
private volatile NetPeer _headPeer;
private int _connectedPeersCount;
private volatile int _connectedPeersCount;
private readonly List<NetPeer> _connectedPeerListCache;
private NetPeer[] _peersArray;
private readonly PacketLayerBase _extraPacketLayer;
Expand Down

0 comments on commit f50e751

Please sign in to comment.