mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Add Thread-Safe Lists, and make all list access thread-safe
This commit is contained in:
parent
900fe0d48a
commit
40c34ac030
24 changed files with 111 additions and 44 deletions
|
@ -12,7 +12,7 @@ namespace HISP.Server
|
|||
{
|
||||
public class GameClient
|
||||
{
|
||||
private static List<GameClient> connectedClients = new List<GameClient>();
|
||||
private static ThreadSafeList<GameClient> connectedClients = new ThreadSafeList<GameClient>();
|
||||
public static GameClient[] ConnectedClients // Done to prevent Enumerator Changed errors.
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue