internal void RemoveClient(int clientID) { NetworkServerConnectionHandler found = null; lock (clientHandlersLock) { foreach (NetworkServerConnectionHandler ch in clientHandlers) { if (ch.ClientID() == clientID) { found = ch; break; } } } if (found != null) { lock (clientHandlersLock) { clientHandlers.Remove(found); eventDist.RemoveClient(clientID); } } }