예제 #1
0
        /// <summary>
        /// Cancels the queue.
        /// </summary>
        /// <param name="player">The player.</param>
        public static void CancelQueue(int playerID)
        {
            var item = PlayersQueue
                       .FirstOrDefault(x => x.PlayerID == playerID);

            lock (item)
            {
                if (item != null)
                {
                    PlayersQueue.Remove(item);
                }
            }
        }