public static void CreateInstance() { if (Instance != null) { return; } _instance = new ServerHandle(); }
private ServerHandle() { _clients = new List <Connection>(); _requests = new Queue <Socket>(); _listenThread = new Thread(WorkThread); _listenThread.Start(); _secondaryListinerActive = false; _instance = this; }