Ejemplo n.º 1
0
        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);
                }
            }
        }